Carl-Daniel Hailfinger wrote:
> On 20.10.2007 02:44, ron minnich wrote:
>   
>> I offer the following diff and a question: can the use of && in these
>> if expressions be wrong?
>>
>> Currently it is:
>> if ((MIN_MOD_BANKS > spd_byte) && (spd_byte > MAX_MOD_BANKS))
>>   
>>     
>
> You want || because either condition should cause the error message. The
> current statement will never be true because
>
> (MIN_MOD_BANKS > MAX_MOD_BANKS) is never true.
>
>
>   
> Patch looks fine to me.
> Acked-by: Carl-Daniel Hailfinger <[EMAIL PROTECTED]>
>
> Carl-Daniel
>
>   

Indeed,  I didn't test it with an non-supported dimm....
Marc



-- 
Marc Jones
Senior Firmware Engineer
(970) 226-9684 Office
mailto:[EMAIL PROTECTED]
http://www.amd.com/embeddedprocessors 




-- 
linuxbios mailing list
linuxbios@linuxbios.org
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to