CIFS: cleanup min_t() cast in cifs_read()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 18 Oct 2011 09:41:35 +0000 (12:41 +0300)
committerSteve French <smfrench@gmail.com>
Tue, 18 Oct 2011 15:33:44 +0000 (10:33 -0500)
commit7748dd6eab8e13f974d4664395e76afffacda04b
treed649a1ef6e9219c7d6d3a5a690555c439e28160a
parenta5ff376966c079bd2f078524eff11b0c63cc2507
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 <dan.carpenter@oracle.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/file.c