upstream: [media] ml86v7667: fix compile warning: 'ret' set but not used
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 30 Jun 2013 07:40:32 +0000 (04:40 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:51:24 +0000 (11:51 +0900)
commit24ab4a59ac0d73e58522392c0ac02b4b8803cc29
tree4c18b33b5d10d4275c5335ff9ff9b6d523e1abf2
parent8b2f173c2a6cb0f7c44f40d901d6752818bc458a
upstream: [media] ml86v7667: fix compile warning: 'ret' set but not used

media_build/v4l/ml86v7667.c: In function 'ml86v7667_s_ctrl':
media_build/v4l/ml86v7667.c:120:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
  int ret;
      ^
And indeed, ret is set but not used. Let's actually return the error
code.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/ml86v7667.c