diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-03-31 23:32:54 +0200 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-04-12 02:56:46 +0200 |
commit | c0c7b905e911a1f1faf515a24e849d4ffcdd0a8a (patch) | |
tree | 8449fe54d28dc94b78ec43d48c99300c023f2de0 /fs/cifs/cifs_unicode.h | |
parent | cifs: set ra_pages in backing_dev_info (diff) | |
download | linux-c0c7b905e911a1f1faf515a24e849d4ffcdd0a8a.tar.xz 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 'fs/cifs/cifs_unicode.h')
0 files changed, 0 insertions, 0 deletions