summaryrefslogtreecommitdiff
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-11-07 09:24:50 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-11-23 12:41:41 +0300
commitcb24f1a0ee61b7dc8adf39aa19f290bf12df9d7f (patch)
tree42433b4d37827fd2b6457584f4659921c76b663e /drivers/media/i2c
parent16ecf6dff97ce0194a7126e26159492668d47a7e (diff)
downloadlinux-cb24f1a0ee61b7dc8adf39aa19f290bf12df9d7f.tar.xz
media: imx214: Remove unnecessary self assignment in for loop
Clang warns when a variable is assigned to itself: drivers/media/i2c/imx214.c:695:13: error: explicitly assigning value of variable of type 'const struct reg_8 *' to itself [-Werror,-Wself-assign] for (table = table; table->addr != IMX214_TABLE_END ; table++) { ~~~~~ ^ ~~~~~ 1 error generated. Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/imx214.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c
index 284b9b49ebde..ec3d1b855f62 100644
--- a/drivers/media/i2c/imx214.c
+++ b/drivers/media/i2c/imx214.c
@@ -692,7 +692,7 @@ static int imx214_write_table(struct imx214 *imx214,
int i;
int ret;
- for (table = table; table->addr != IMX214_TABLE_END ; table++) {
+ for (; table->addr != IMX214_TABLE_END ; table++) {
if (table->addr == IMX214_TABLE_WAIT_MS) {
usleep_range(table->val * 1000,
table->val * 1000 + 500);