device: merge IPv4 and IPv6 versions of ip_config_merge_and_apply() (pt1)
Functions like these are conceptually very similar. Commonly, what we want to do for one address family we also want to do for the other. Merge the two functions. This moves the similar parts closer to each other and stand beside it. This is only the first part of the merge, which is pretty trivial without larger changes (to keep the diff simple). More next.
Showing with 235 additions and 238 deletions