android_kernel_samsung_univ.../drivers/media
Mauro Carvalho Chehab 9205be7fa6 cx23885-dvb: move initialization of a8293_pdata
commit f0b0faff78c2c2e8efe843de55405a1f0470b8c4 upstream.

Smatch complains about where the au8293_data is placed:

drivers/media/pci/cx23885/cx23885-dvb.c:2174 dvb_register() info: 'a8293_pdata' is not actually initialized (unreached code).

It is not actually expected to have such initialization at

switch {
	foo = bar;

	case:
...
}

Not really sure how gcc does that, but this is something that I would
expect that different compilers would do different things.

David Howells checked with the compiler people: it's not really expected to
initialise as expected.

So, move the initialization outside the switch(), making smatch to
shut up one warning.

Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-12 11:22:51 +01:00
..
common
dvb-core media: dvb_ringbuffer: Add memory barriers 2016-08-20 18:09:18 +02:00
dvb-frontends mb86a20s: fix demod settings 2016-10-28 03:01:30 -04:00
firewire
i2c adv7511: TX_EDID_PRESENT is still 1 after a disconnect 2016-04-12 09:08:50 -07:00
mmc
pci cx23885-dvb: move initialization of a8293_pdata 2017-01-12 11:22:51 +01:00
platform am437x-vfpe: fix typo in vpfe_get_app_input_index 2016-09-30 10:18:35 +02:00
radio
rc Fix RC5 decoding with Fintek CIR chipset 2016-08-20 18:09:18 +02:00
tuners si2157: return -EINVAL if firmware blob is too big 2016-03-03 15:07:14 -08:00
usb dib0700: fix nec repeat handling 2016-11-18 10:48:34 +01:00
v4l2-core vb2: core: Skip planes array verification if pb is NULL 2016-08-20 18:09:18 +02:00
Kconfig
Makefile
media-device.c
media-devnode.c
media-entity.c [media] media-entity.c: get rid of var length arrays 2015-10-01 18:10:05 -03:00