diff options
author | 2011-03-31 17:32:54 -0400 | |
---|---|---|
committer | 2011-04-12 00:56:46 +0000 | |
commit | c0c7b905e911a1f1faf515a24e849d4ffcdd0a8a (patch) | |
tree | 8449fe54d28dc94b78ec43d48c99300c023f2de0 /drivers/base/platform.c | |
parent | cifs: set ra_pages in backing_dev_info (diff) | |
download | wireguard-linux-c0c7b905e911a1f1faf515a24e849d4ffcdd0a8a.tar.xz wireguard-linux-c0c7b905e911a1f1faf515a24e849d4ffcdd0a8a.zip |
cifs: clean up length checks in check2ndT2
Thus spake David Howells:
The code that follows this:
remaining = total_data_size - data_in_this_rsp;
if (remaining == 0)
return 0;
else if (remaining < 0) {
generates better code if you drop the 'remaining' variable and compare
the values directly.
Clean it up per his recommendation...
Reported-and-acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions