From: Lisa Nguyen Date: Wed, 11 Dec 2013 06:09:22 +0000 (-0300) Subject: [media] staging: media: davinci_vpfe: Rewrite return statement in vpfe_video.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3e6e3b3d3d6877e5b9fe0c2cd9788127a4974a3d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] staging: media: davinci_vpfe: Rewrite return statement in vpfe_video.c Rewrite the return statement in vpfe_video.c. This will prevent the checkpatch.pl script from generating a warning saying to remove () from this particular return statement. Signed-off-by: Lisa Nguyen Acked-by: Laurent Pinchart Acked-by: Lad, Prabhakar Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/davinci_vpfe/vpfe_video.c b/drivers/staging/media/davinci_vpfe/vpfe_video.c index 24d98a6866bb..3b036bef8c43 100644 --- a/drivers/staging/media/davinci_vpfe/vpfe_video.c +++ b/drivers/staging/media/davinci_vpfe/vpfe_video.c @@ -346,7 +346,7 @@ static int vpfe_pipeline_disable(struct vpfe_pipeline *pipe) } mutex_unlock(&mdev->graph_mutex); - return (ret == 0) ? ret : -ETIMEDOUT ; + return ret ? -ETIMEDOUT : 0; } /*