aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/db1xxx_ss.c
diff options
context:
space:
mode:
authorRémi Cardona <remi.cardona@smartjog.com>2012-09-28 07:59:29 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-27 16:43:46 -0500
commitd58f4f27282e10b25daee53045a7e839bd4178a5 (patch)
treef106b7164df7cb6bfbb5c4dc1feeb946e2f6a82b /drivers/pcmcia/db1xxx_ss.c
parent7e5d74ee116d9622fc4ef9f5100692485ae286cf (diff)
[media] ds3000: bail out early on i2c failures during firmware load
- if kmalloc() returns NULL, we can return immediately without trying to kfree() a NULL pointer. - if i2c_transfer() fails, error out immediately instead of trying to upload the remaining bytes of the firmware. - the error code is then properly propagated down to ds3000_initfe(). Signed-off-by: Rémi Cardona <remi.cardona@smartjog.com> Reviewed-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/pcmcia/db1xxx_ss.c')
0 files changed, 0 insertions, 0 deletions