Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36358c21 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Steve French
Browse files

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

parent d0d2f2df
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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 */
}