The condition check 'channel < 0' is needless since channel is unsigned.
Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Link: http://lkml.kernel.org/r/20130905144353.GB15894@redhat.com
Signed-off-by: Borislav Petkov <bp@suse.de>
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));