]> git.baikalelectronics.ru Git - kernel.git/commit
dca: Use PTR_ERR_OR_ZERO() to simplify code
authorTang Bin <tangbin@cmss.chinamobile.com>
Thu, 7 May 2020 11:12:24 +0000 (19:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 14:25:20 +0000 (16:25 +0200)
commitf3738bfe20dcdfd6f0fb84b1749ef25bc4f32dfb
tree26e56ce9bf4f0060d3075e74766d606af7554fe1
parent0002a1963f6f969427849962191d8dc6f8e9e853
dca: Use PTR_ERR_OR_ZERO() to simplify code

The function PTR_ERR_OR_ZERO() contains the check of
IS_ERR() and the return of PTR_ERR() or zero.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20200507111224.4176-1-tangbin@cmss.chinamobile.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dca/dca-sysfs.c