diff options
author | Jean Delvare <khali@linux-fr.org> | 2012-03-13 17:50:37 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-19 23:17:58 +0100 |
commit | 3ef76759484832e498cba381aa1b24b90cf36a26 (patch) | |
tree | 2870943b0d8fad4f5e3521fad2f142779302f935 /drivers/media/dvb/dvb-usb/dvb-usb-i2c.c | |
parent | [media] media: em28xx: Paranoic stack save (diff) | |
download | linux-3ef76759484832e498cba381aa1b24b90cf36a26.tar.xz linux-3ef76759484832e498cba381aa1b24b90cf36a26.zip |
[media] dib0700: Drop useless check when remote key is pressed
struct dvb_usb_device *d can never be NULL so don't waste time
checking for this.
Rationale: the urb's context is set when usb_fill_bulk_urb() is called
in dib0700_rc_setup(), and never changes after that. d is dereferenced
unconditionally in dib0700_rc_setup() so it can't be NULL or the
driver would crash right away.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dvb-usb-i2c.c')
0 files changed, 0 insertions, 0 deletions