]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: drivers: improve a size determination
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 28 Aug 2017 09:55:16 +0000 (05:55 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 23 Sep 2017 12:20:57 +0000 (08:20 -0400)
commit2d3da59ff163b2aa805de0fc65ba933a735b00cd
tree4c370d1bf357c25d8941627ed8968ab295f1f8ee
parentd303b7c5b2660d93ba0dd2bf99b7dfa7bb93de73
media: drivers: improve a size determination

Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

This issue was detected by using the Coccinelle software.

[mchehab@s-opensoure.com: merge similar patches into one]

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
17 files changed:
drivers/media/common/cypress_firmware.c
drivers/media/common/siano/smscoreapi.c
drivers/media/dvb-frontends/as102_fe.c
drivers/media/dvb-frontends/cx24113.c
drivers/media/dvb-frontends/cx24116.c
drivers/media/dvb-frontends/ds3000.c
drivers/media/dvb-frontends/mb86a20s.c
drivers/media/dvb-frontends/sp2.c
drivers/media/i2c/adv7842.c
drivers/media/pci/cx18/cx18-driver.c
drivers/media/pci/mantis/hopper_cards.c
drivers/media/pci/mantis/mantis_cards.c
drivers/media/pci/saa7146/hexium_gemini.c
drivers/media/pci/saa7146/hexium_orion.c
drivers/media/pci/saa7164/saa7164-buffer.c
drivers/media/platform/atmel/atmel-isc.c
drivers/media/usb/zr364xx/zr364xx.c