From: Dan Carpenter Date: Tue, 18 Oct 2011 09:41:35 +0000 (+0300) Subject: CIFS: cleanup min_t() cast in cifs_read() X-Git-Tag: v3.2-rc1~133^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7748dd6eab8e13f974d4664395e76afffacda04b;p=pandora-kernel.git CIFS: cleanup min_t() cast in cifs_read() Smatch complains that the cast to "int" in min_t() changes very large values of current_read_size into negative values and so min_t() could return the wrong value. I removed the const as well, as that doesn't do anything here. Signed-off-by: Dan Carpenter Signed-off-by: Steve French --- Reading git-diff-tree failed