mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
block: sed-opal: Remove always false conditional statement
In the function 'response_parse', num_entries will never be 0 as slen is checked for 0. Hence, the condition 'if (num_entries == 0)' can never be true. Signed-off-by: Revanth Rajashekar <[email protected]> Reviewed-by: Scott Bauer <[email protected]> Reviewed-by: Jon Derrick <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
5cc23ed75b
commit
89c6cc2cab
1 changed files with 0 additions and 4 deletions
|
|
@ -905,10 +905,6 @@ static int response_parse(const u8 *buf, size_t length,
|
|||
num_entries++;
|
||||
}
|
||||
|
||||
if (num_entries == 0) {
|
||||
pr_debug("Couldn't parse response.\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
resp->num = num_entries;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue