]> asedeno.scripts.mit.edu Git - linux.git/commit
media: rcar-csi2: Fix coccinelle warning for PTR_ERR_OR_ZERO()
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 16 May 2019 00:35:38 +0000 (20:35 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 16:50:03 +0000 (12:50 -0400)
commit0c310868826eb10b724a21dcd05e19768b6fc3a8
tree57838b95d2577444fd6958e347a821a593a60b97
parent20059cbbf981ca954be56f7963ae494d18e2dda1
media: rcar-csi2: Fix coccinelle warning for PTR_ERR_OR_ZERO()

Use the PTR_ERR_OR_ZERO() macro instead of construct:

    if (IS_ERR(foo))
        return PTR_ERR(foo);

    return 0;

Fixes: 3ae854cafd76 ("rcar-csi2: Use standby mode instead of resetting")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/rcar-vin/rcar-csi2.c