Re: [PATCH] liquidio CN23XX: check if PENDING bit is clear using logical and

From: David Miller
Date: Fri Nov 18 2016 - 14:04:24 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Fri, 18 Nov 2016 18:45:32 +0000

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> the mbox state should be bitwise anded rather than logically anded
> with OCTEON_MBOX_STATE_RESPONSE_PENDING. Fix this by using the
> correct & operator instead of &&.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Dan Carpenter already submitted a fix for this.