lkml.org 
[lkml]   [2022]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] firmware: edd: Remove redundant condition
On Thu, Mar 17, 2022 at 06:05:20PM +0800, Haowen Bai wrote:
> The logic !A || A && B is equivalent to !A || B. so we have
> to make code clear.

But the logic here is:
(!A || (A && B))
not:
(!A || A && B)

as you write.

Is that the same? I don't want to have to dig up my son's logic
textbook...

How did you test this?

thanks,

greg k-h

\
 
 \ /
  Last update: 2022-03-18 14:16    [W:0.061 / U:0.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site