cifs: reuse cifs_match_ipaddr for comparison of dstaddr too
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 27 Dec 2022 14:09:32 +0000 (14:09 +0000)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Mar 2023 00:18:24 +0000 (18:18 -0600)
commit410612b0726b2ee68808da7bd27103d96b4cf898
tree302f1f20f048abd1b14dc89f9a2de37ed4c3d8ac
parenta21be1f5df85831147d5a1cbb5f2a13ec8c6852b
cifs: reuse cifs_match_ipaddr for comparison of dstaddr too

We have two pieces of code that does pretty much the same
comparison. This change reuses cifs_match_ipaddr within
match_address.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c