]> git.baikalelectronics.ru Git - kernel.git/commit
[media] siano: remove the bogus firmware lookup code
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Mar 2013 15:00:23 +0000 (12:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Mar 2013 10:52:57 +0000 (07:52 -0300)
commit38408646415442bab5f9b7df5a93d3c6025f565b
treee3fc553dfa9fa583d26c7d799f0f2f8b9f63849c
parentb4e95a9b66f87435707c95fb35d63e6f5d31db5d
[media] siano: remove the bogus firmware lookup code

There is an special lookup code that is called when
SMS_BOARD_UNKNOWN. The logic there is bogus and will cause
an oops, as .type is SMS_UNKNOWN_TYPE (-1).
As the code would do:
return smscore_fw_lkup[type][mode];
That would mean that it would try to go past the
smscore_fw_lkup table.
So, just remove that bogus code, simplifying the logic.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/siano/smscoreapi.c