mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
staging: media: davinci_vpfe: dm365_ipipe_hw: Remove unnecessary else after return
This patch fixes the checkpatch warning that else is not generally
useful after a break or return.
This was done using Coccinelle:
@@
expression e2;
statement s1;
@@
if(e2) { ... return ...; }
-else
s1
Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
58f31812b0
commit
fec6925030
@@ -242,7 +242,7 @@ static int get_ipipe_mode(struct vpfe_ipipe_device *ipipe)
|
||||
|
||||
if (ipipeif_sink == IPIPEIF_INPUT_MEMORY)
|
||||
return IPIPE_MODE_SINGLE_SHOT;
|
||||
else if (ipipeif_sink == IPIPEIF_INPUT_ISIF)
|
||||
if (ipipeif_sink == IPIPEIF_INPUT_ISIF)
|
||||
return IPIPE_MODE_CONTINUOUS;
|
||||
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user