lkml.org 
[lkml]   [2017]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: IB/core: Use PTR_ERR_OR_ZERO()
On Tue, Nov 28, 2017 at 04:18:07PM +0100, Gomonovych, Vasyl wrote:
> Fix ptr_ret.cocci warnings:
> drivers/infiniband/core/uverbs_cmd.c:1156:1-3: WARNING: PTR_ERR_OR_ZERO can be used
>
> Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
>
> Generated by: scripts/coccinelle/api/ptr_ret.cocci
>
> Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
> Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
> drivers/infiniband/core/uverbs_cmd.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)

Applied to for-next, thanks

Jason

\
 
 \ /
  Last update: 2017-12-12 00:39    [W:0.047 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site