media: tuners: initialize hw and fw ids in xc4000.c
PATCH 1/1 media: tuners: initialize hw and fw ids in xc4000.c
These variables are implicitly initialized by passing them to xc_get_version(). However, initializing them to 0 explicitly will avoid compile warnings.
Signed-off-by Simon Que <[email protected]>
--- drivers/media/tuners/xc4000.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/media/tuners/xc4000.c +2 -1
@@ -934,7 +934,8 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type,int rc =0 , is_retry =0 ;u16 hwmodel;v4l2_std_id std0; -u8 hw_major, hw_minor, fw_major, fw_minor; +u8 hw_major =0 , hw_minor =0 ; +u8 fw_major =0 , fw_minor =0 ;dprintk (1 ,"%s called\n" , __func__);
Signature · 1 line
1.7.8.6