[PATCH] fs/cifs/netmisc.c: fix sparse warning From: Alexey Dobriyan Signed-off-by: Alexey Dobriyan Signed-off-by: Domen Puncer Index: linux-kj/fs/cifs/netmisc.c =================================================================== --- linux-kj.orig/fs/cifs/netmisc.c 2005-10-01 02:48:40.000000000 +0400 +++ linux-kj/fs/cifs/netmisc.c 2005-10-01 03:00:46.000000000 +0400 @@ -133,7 +133,6 @@ static const struct smb_to_posix_error m int cifs_inet_pton(int address_family, char *cp,void *dst) { - struct in_addr address; int value; int digit; int i; @@ -190,8 +189,7 @@ cifs_inet_pton(int address_family, char if (value > addr_class_max[end - bytes]) return 0; - address.s_addr = *((__be32 *) bytes) | htonl(value); - *((__be32 *)dst) = address.s_addr; + *((__be32 *)dst) = *((__be32 *) bytes) | htonl(value); return 1; /* success */ }