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 colin.k...@canonical.com 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

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

2015-01-22 Thread Colin King
From: Colin Ian King colin.k...@canonical.com 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