提交 36358c21 编写于 作者: A Alexey Dobriyan 提交者: Steve French

[CIFS] fs/cifs/netmisc.c: fix sparse warning

Signed-off-by: NSteve French <sfrench@us.ibm.com>
Signed-off-by: NAlexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: NDomen Puncer <domen@coderock.org>
上级 d0d2f2df
......@@ -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;
......@@ -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 */
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册