Skip to content

Commit

Permalink
[CIFS] fs/cifs/netmisc.c: fix sparse warning
Browse files Browse the repository at this point in the history
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: Domen Puncer <domen@coderock.org>
  • Loading branch information
Alexey Dobriyan authored and Steve French committed Jun 3, 2005
1 parent d0d2f2d commit 36358c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/cifs/netmisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ static const struct smb_to_posix_error mapping_table_ERRHRD[] = {
int
cifs_inet_pton(int address_family, char *cp,void *dst)
{
struct in_addr address;
int value;
int digit;
int i;
Expand Down Expand Up @@ -190,8 +189,7 @@ cifs_inet_pton(int address_family, char *cp,void *dst)
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 */
}

Expand Down

0 comments on commit 36358c2

Please sign in to comment.