media: bttv-input: better handle errors at I2C transfer
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Mar 2018 10:36:26 +0000 (06:36 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Mar 2018 10:54:32 +0000 (06:54 -0400)
commitd3c449e16fc829dba347dc72106f8d28b15896f9
treef774d668791c831ec5a317e39430a4090721fd76
parentb0121ca03865ec5fa46f2ffc9d354cd5e5613023
media: bttv-input: better handle errors at I2C transfer

The error handling logic at get_key_pv951() is a little bit
akward, with produces this false positive warning:

drivers/media/pci/bt8xx/bttv-input.c:344 get_key_pv951() error: uninitialized symbol 'b'.

Do a cleanup. As a side effect, it also improves its coding
style.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/bt8xx/bttv-input.c