[PATCH v3 1/9] ufs: host: mediatek: Remove unnecessary boolean conversion and parentheses
Bart Van Assche
bvanassche at acm.org
Mon Jul 21 08:44:40 PDT 2025
On 7/21/25 1:35 AM, peter.wang at mediatek.com wrote:
> The changes
> simplify the code by directly returning the result of bitwise operations
> without converting them to boolean values or using extra parentheses.
The code changes look good to me but the description of this patch does
not. The conversion from unsigned int to boolean still happens with
this patch applied. This patch converts an explicit conversion into an
implicit conversion.
Thanks,
Bart.
More information about the Linux-mediatek
mailing list