Re: [PATCH v2] staging: sm750fb: Replace comparisons with NULL and 0

From: Dan Carpenter
Date: Thu Mar 21 2024 - 01:41:57 EST


On Wed, Mar 20, 2024 at 11:39:43PM +0530, Chandra Pratap wrote:
> Replace '(opt != NULL)' with '(opt)' and '(*opt != 0)'
> with '(*opt != '\0')' to adhere to the coding standards.
>
> Signed-off-by: Chandra Pratap <chandrapratap3519@xxxxxxxxx>
> ---
> Changes in v2:
> - Update the commit message to reflect the changes better
> - replace (*opt) with (*opt != '\0')
>

Thanks!

Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

regards,
dan carpenter