提交 3a054627 编写于 作者: R Roel Kluin 提交者: Mauro Carvalho Chehab

V4L/DVB (13380): sms-cards: make id unsigned in sms_get_board()

Make id signed so we can't get an invalid pointer when we pass a negative
id.
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 2b588db8
......@@ -97,7 +97,7 @@ static struct sms_board sms_boards[] = {
},
};
struct sms_board *sms_get_board(int id)
struct sms_board *sms_get_board(unsigned id)
{
BUG_ON(id >= ARRAY_SIZE(sms_boards));
......
......@@ -81,7 +81,7 @@ struct sms_board {
int led_power, led_hi, led_lo, lna_ctrl, rf_switch;
};
struct sms_board *sms_get_board(int id);
struct sms_board *sms_get_board(unsigned id);
extern struct smscore_device_t *coredev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册