From: Jeff Layton Date: Thu, 31 Mar 2011 21:32:54 +0000 (-0400) Subject: cifs: clean up length checks in check2ndT2 X-Git-Tag: v2.6.39-rc4~62^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0c7b905e911a1f1faf515a24e849d4ffcdd0a8a;p=pandora-kernel.git 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 Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed