net/sunrpc: fix useless comparison in proc_do_xprt()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 Nov 2020 20:50:39 +0000 (15:50 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Sun, 8 Nov 2020 21:28:25 +0000 (16:28 -0500)
commitae2975046dbc65855c217fe6fbd5b33140c5ff18
tree55063f517533075f5e84dbd4b8c064f69926f0fe
parentd435c05ab0197ee302290e1cee3f2d9c9024a64f
net/sunrpc: fix useless comparison in proc_do_xprt()

In the original code, the "if (*lenp < 0)" check didn't work because
"*lenp" is unsigned.  Fortunately, the memory_read_from_buffer() call
will never fail in this context so it doesn't affect runtime.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/sysctl.c