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)
commit7a6e6c3be88dcc18f592c76f11cf8e7e090dc9dd
tree32921ce6a68cc0923fb47cea8bdeacee70a61443
parent5f4d34693cfb217354e079789864ed8801b0d39d
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