[PATCH] scsi_debug: test always evaluates to false, || should be used instead

2015-01-22 Thread Colin King
From: Colin Ian King 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 ("s

Re: [PATCH] scsi_debug: test always evaluates to false, || should be used instead

2015-01-22 Thread Douglas Gilbert
On 15-01-22 12:20 PM, Colin King wrote: From: Colin Ian King 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