aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2019-11-20 13:50:31 +0000
committerMartin K. Petersen <[email protected]>2019-11-26 21:30:12 -0500
commit0e7c353e1828819eb92af0a64fc9b2f4f778b76e (patch)
treefd945aeeb00d0282f3c715ae2f3454a8e9f5dc2a /drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
parent82ea3e0e129e2ab913dd6684bab7a6e5e9896dee (diff)
scsi: pm80xx: fix logic to break out of loop when register value is 2 or 3
The condition (reg_val != 2) || (reg_val != 3) will always be true because reg_val cannot be equal to two different values at the same time. Fix this by replacing the || operator with && so that the loop will loop if reg_val is not a 2 and not a 3 as was originally intended. Fixes: 50dc2f221455 ("scsi: pm80xx: Modified the logic to collect fatal dump") Link: https://lore.kernel.org/r/[email protected] Addresses-Coverity: ("Constant expression result") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Jack Wang <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_display.c')
0 files changed, 0 insertions, 0 deletions