Re: [PATCH 3/4] dma-buf: Adjust a null pointer check in dma_buf_attach()

From: Gustavo Padovan
Date: Mon May 08 2017 - 10:32:33 EST


2017-05-08 SF Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>:

> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> Date: Mon, 8 May 2017 10:54:17 +0200
>
> The script "checkpatch.pl" pointed information out like the following.
>
> Comparison to NULL could be written "!attach"
>
> Thus adjust this expression.
>
> Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> ---
> drivers/dma-buf/dma-buf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Gustavo Padovan <gustavo.padovan@xxxxxxxxxxxxx>

Gustavo