summaryrefslogtreecommitdiffstats
path: root/drivers/idle
diff options
context:
space:
mode:
authorAravind Gopalakrishnan2013-12-04 18:40:11 +0100
committerBorislav Petkov2013-12-06 10:04:17 +0100
commit7f3f5240ce64b2b59e2a9a338b4a38931724192a (patch)
tree958606e908ec49d2a0e7b8c91de5c38d05fca800 /drivers/idle
parentedac/85xx: Add PCIe error interrupt edac support (diff)
downloadkernel-qcow2-linux-7f3f5240ce64b2b59e2a9a338b4a38931724192a.tar.gz
kernel-qcow2-linux-7f3f5240ce64b2b59e2a9a338b4a38931724192a.tar.xz
kernel-qcow2-linux-7f3f5240ce64b2b59e2a9a338b4a38931724192a.zip
amd64_edac: Fix condition to verify max channels allowed for F15 M30h
The value returned from 'f15_m30h_determine_channel' will always be 0x3 max. The condition (channel > 4 || channel < 0) works as hardware never returns a value of 4, but it leads to static checker analysis errors like http://marc.info/?l=linux-edac&m=138607615131951&w=2. Fix that. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> Link: http://lkml.kernel.org/r/20131203130857.GA32170@elgon.mountain [ Boris: massage commit message a bit. ] Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/idle')
0 files changed, 0 insertions, 0 deletions