]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: Remove unneeded conversion to bool
authorJason Yan <yanaijie@huawei.com>
Mon, 20 Apr 2020 12:34:31 +0000 (20:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2020 22:45:32 +0000 (15:45 -0700)
commit2122813bb9378e7d6a34a26c565b74a6b70911bb
treeb65aa1f869e8d0efeb5d3533636d919cd07b0bc0
parent4bd612053afa7012a3e74628c77c49213393f2ab
ptp: Remove unneeded conversion to bool

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@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ines.c