staging: media: atomisp: Remove useless cast.
authorVarsha Rao <rvarsha016@gmail.com>
Thu, 9 Mar 2017 15:50:04 +0000 (21:20 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 16:51:11 +0000 (17:51 +0100)
commitbf5d0300f1ac9399c3e3d900c5b767081d5f4af9
tree630424c32fe9f71de8fc678c6a65469ef7e22c06
parentf4fa03701d8ad94846f3577d46cd8cc782fe9d8a
staging: media: atomisp: Remove useless cast.

Explicit type casting of variable, with same type as that of variable,
is not required. The following coccinelle script is used to remove it.

@@
type T;
T *ptr;
T p;
@@
(
- (T *)(&p)
+ &p
|
- (T *)ptr
+ ptr
|
- (T *)(ptr)
+ ptr
|
- (T)(p)
+ p
)

This patch also removes unnecessary parentheses.

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/i2c/gc2235.c
drivers/staging/media/atomisp/i2c/mt9m114.c
drivers/staging/media/atomisp/i2c/ov2722.c
drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/isys/src/isys_dma_rmgr.c
drivers/staging/media/atomisp/pci/atomisp2/css2400/sh_css_firmware.c
drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm.c