]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] iscsi_tcp: change & to &&
authorDan Carpenter <error27@gmail.com>
Sat, 10 Apr 2010 03:07:36 +0000 (22:07 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 19:03:59 +0000 (14:03 -0500)
commitef7d17a907d89d590831a3995ed8638a9ad394bc
tree89f3c242e46e157c0ef60f5a4afd5a9a319dcb14
parent9f8f3aa640ae5da220eea95215317f19ace91481
[SCSI] iscsi_tcp: change & to &&

This change is basically a clean up.

datadgst_en is an int which comes from the user.  I didn't see anything
limiting it to 1 and 0 although obviously that's what it's supposed to
be.  If the user passed in 2 this test would fail.

This same if condition is repeated in another function and it uses &&
there.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libiscsi_tcp.c