From: Aravind Gopalakrishnan Date: Wed, 4 Dec 2013 17:40:11 +0000 (-0600) Subject: amd64_edac: Fix condition to verify max channels allowed for F15 M30h X-Git-Tag: v3.14-rc1~181^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f3f5240ce64b2b59e2a9a338b4a38931724192a;p=pandora-kernel.git 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 Signed-off-by: Aravind Gopalakrishnan Link: http://lkml.kernel.org/r/20131203130857.GA32170@elgon.mountain [ Boris: massage commit message a bit. ] Signed-off-by: Borislav Petkov --- Reading git-diff-tree failed