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, 1 Jun 2023 04:16:58 +0000 (23:16 -0500)
commitfe29273c2f60dd710c8f401669943d0f924f7a1c
treee3838510d78b3c89fb6a5d82a332ad001dd8e768
parentb584f3f14ec0a4151b8fd40f89158de28134c7ff
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