]> asedeno.scripts.mit.edu Git - linux.git/commit
media: tm6000: cleanup trival coding style issues
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 14 Sep 2017 12:34:39 +0000 (14:34 +0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 27 Oct 2017 12:07:48 +0000 (14:07 +0200)
commit7e11d5027b1fed5bbd0d74842a0a60381a2be823
tree9b7ca6ac8afd35f437d6c5b26c2b09317cfe5b5e
parent5bf24e08b685d862f1249987a6d3423b42989622
media: tm6000: cleanup trival coding style issues

- Delete seven error messages for a failed memory allocation
- Adjust seven checks for null pointers
- Use common error handling code in tm6000_usb_probe()
- Adjust jump targets so that the function "kfree" will be always called
  with a non-null pointer.
- Delete an initialisation for the local variable "dev"
  which became unnecessary with this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/tm6000/tm6000-cards.c
drivers/media/usb/tm6000/tm6000-dvb.c
drivers/media/usb/tm6000/tm6000-input.c
drivers/media/usb/tm6000/tm6000-video.c