Re: [PATCH] ptp: Remove unneeded conversion to bool
From: David Miller
Date: Tue Apr 21 2020 - 18:45:52 EST
From: Jason Yan <yanaijie@xxxxxxxxxx>
Date: Mon, 20 Apr 2020 20:34:31 +0800
> The '==' expression itself is bool, no need to convert it to bool again.
> This fixes the following coccicheck warning:
>
> drivers/ptp/ptp_ines.c:403:55-60: WARNING: conversion to bool not
> needed here
> drivers/ptp/ptp_ines.c:404:55-60: WARNING: conversion to bool not
> needed here
>
> Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx>
Applied to net-next.