Files
linux/drivers
Mauro Carvalho Chehab 9205be7fa6 cx23885-dvb: move initialization of a8293_pdata
commit f0b0faff78 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
..
2016-11-26 09:54:52 +01:00
2016-09-24 10:07:35 +02:00
2017-01-12 11:22:47 +01:00
2016-12-08 07:15:24 +01:00
2016-11-26 09:54:53 +01:00
2017-01-12 11:22:49 +01:00
2016-11-26 09:54:53 +01:00
2016-08-20 18:09:22 +02:00