Colin Ian King 6d310dfb38 scsi_debug: test always evaluates to false, || should be used instead
cppcheck found the following issue:
(warning) Logical conjunction always evaluates to false:
  alloc_len < 4 && alloc_len > 65535.

..the test should be instead:

  if (alloc_len < 4 || alloc_len > 65536)

This error was introduced by recent commit 38d5c8336e60bf6e53a1da9
("scsi_debug: add Report supported opcodes+tmfs; Compare and write")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2015-01-22 17:50:52 +01:00
..
2014-11-20 09:11:10 +01:00
2014-11-24 20:01:28 +01:00
2014-08-26 09:35:54 +02:00
2015-01-05 18:15:08 +01:00
2014-12-04 09:57:13 +01:00
2014-08-08 15:57:29 -07:00
2014-12-04 09:58:33 +01:00
2014-11-24 16:13:18 +01:00
2014-11-24 20:01:28 +01:00
2014-07-17 22:07:38 +02:00
2014-11-20 09:11:11 +01:00
2014-07-17 22:07:37 +02:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-11-24 16:13:16 +01:00
2014-11-20 09:11:10 +01:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2014-07-17 22:07:37 +02:00
2015-01-19 10:46:20 +01:00
2015-01-19 10:46:20 +01:00
2013-04-09 14:13:27 -04:00
2014-08-08 15:57:29 -07:00
2013-04-09 14:13:15 -04:00
2014-07-17 22:07:35 +02:00
2014-11-20 09:11:10 +01:00
2014-10-07 21:29:18 -04:00
2014-11-24 20:01:28 +01:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2013-04-09 14:13:17 -04:00
2014-07-25 17:16:55 -04:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-11-12 11:15:57 +01:00
2014-11-24 20:01:28 +01:00
2014-11-12 11:16:11 +01:00
2014-07-17 22:07:39 +02:00
2014-11-24 20:01:28 +01:00
2014-11-12 11:15:57 +01:00
2014-11-24 20:01:28 +01:00
2014-11-20 09:11:15 +01:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:15 -04:00
2014-11-27 16:40:16 +01:00