]> git.baikalelectronics.ru Git - kernel.git/commit
media: davinci: do a couple of checkpatch cleanups
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 7 Sep 2017 20:37:16 +0000 (16:37 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 23 Sep 2017 18:55:27 +0000 (14:55 -0400)
commit3a6aa42dd1eb1b07007819388e71407b5bd479a0
tree32921ce6a68cc0923fb47cea8bdeacee70a61443
parent56a499a0df36aa6653245e15cb43e75a85fa6620
media: davinci: do a couple of checkpatch cleanups

- Delete an error message for a failed memory allocation
  in init_vpbe_layer();

- Replace the specification of data structures by pointer dereferences
  as the parameter for the operator "sizeof" to make the corresponding
  size determination a bit safer according to the Linux coding style
  convention;

- media: DaVinci-VPBE-Display: Improve a size determination in two
  functions

- Adjust 12 checks for null pointers

Those issues were pointed by checkpatch.pl and Coccinelle.

[mchehab@s-opensource.com: fold three cleanup patches into one]
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/davinci/vpbe_display.c