]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'edac-amd/for-next'
authorThierry Reding <treding@nvidia.com>
Thu, 24 Oct 2013 12:58:15 +0000 (14:58 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 24 Oct 2013 12:58:15 +0000 (14:58 +0200)
drivers/edac/amd64_edac.c

index 3c9e4e98c65111a069dcbcc5916cd2e061052938..bbd1913ce27c4cdcc2a11dcb9c8c811e7edf8f07 100644 (file)
@@ -1576,7 +1576,7 @@ static int f15_m30h_match_to_this_node(struct amd64_pvt *pvt, unsigned range,
                                             num_dcts_intlv, dct_sel);
 
        /* Verify we stay within the MAX number of channels allowed */
-       if (channel > 4 || channel < 0)
+       if (channel > 4)
                return -EINVAL;
 
        leg_mmio_hole = (u8) (dct_cont_base_reg >> 1 & BIT(0));