Skip to content
Commit 6d310dfb authored by Colin Ian King's avatar Colin Ian King Committed by Christoph Hellwig
Browse files

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 38d5c833


("scsi_debug: add Report supported opcodes+tmfs; Compare and write")

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarDouglas Gilbert <dgilbert@interlog.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 91724c20
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment