OSDN Git Service

staging: atomisp: remove useless condition in if-statements
authorDaeseok Youn <daeseok.youn@gmail.com>
Tue, 21 Mar 2017 02:12:57 +0000 (11:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:39:58 +0000 (08:39 +0100)
commit435ec8afa59e28b4bcf2933da86b2c32fa326f8c
treecaedd0831446b77cffc4563449d66eb64dc34357
parent00987f507c865269f69c49b56f7f8f2aad19f2ad
staging: atomisp: remove useless condition in if-statements

The css_pipe_id was checked with 'CSS_PIPE_ID_COPY' in previous if-
statement. In this case, if the css_pipe_id equals to 'CSS_PIPE_ID_COPY',
it could not enter the next if-statement. But the "next" if-statement
has the condition to check whether the css_pipe_id equals to
'CSS_PIPE_ID_COPY' or not. It should be removed.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c