media: ov7670: Remove useless use of a ret variable
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 15 Jan 2019 08:54:44 +0000 (06:54 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 25 Jan 2019 12:38:59 +0000 (10:38 -0200)
commitf1fb085562411f71ab9259fc131b78d93406c907
tree2ddde63caca3e1d5b27f0edd6c74cf0efa7fc3cd
parent879347f0c258cffe27b9e28bd4f1f55fc019f857
media: ov7670: Remove useless use of a ret variable

Instead of assigning the return value to ret and then checking and
returning it, just return the value to the caller directly. The success
value is always 0.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov7670.c