Searched hist:"949 cf706" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/media/radio/ |
H A D | radio-si476x.c | 949cf706 Mon Jan 11 01:13:35 CST 2016 Fugang Duan <b38611@freescale.com> [media] radio-si476x: add return value check to avoid dead code
Dead code found on below code: si476x_radio_add_new_custom(radio, SI476X_IDX_DIVERSITY_MODE); if (rval < 0) goto exit;
si476x_radio_add_new_custom(radio, SI476X_IDX_INTERCHIP_LINK); if (rval < 0) ====> Dead code !!! goto exit;
The piece of code miss return value check after calling .si476x_radio_add_new_custom(), the patch fix it.
Signed-off-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> 949cf706 Mon Jan 11 01:13:35 CST 2016 Fugang Duan <b38611@freescale.com> [media] radio-si476x: add return value check to avoid dead code Dead code found on below code: si476x_radio_add_new_custom(radio, SI476X_IDX_DIVERSITY_MODE); if (rval < 0) goto exit; si476x_radio_add_new_custom(radio, SI476X_IDX_INTERCHIP_LINK); if (rval < 0) ====> Dead code !!! goto exit; The piece of code miss return value check after calling .si476x_radio_add_new_custom(), the patch fix it. Signed-off-by: Fugang Duan <B38611@freescale.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
|