mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 17:36:57 +07:00
[media] media: usb: dvb-usb-v2: mxl111sf.c: Cleaning up uninitialized variables
There is a risk that the variable will be used without being initialized. This was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
4df16f702c
commit
e5a89998d4
@ -129,7 +129,7 @@ int mxl111sf_write_reg_mask(struct mxl111sf_state *state,
|
||||
u8 addr, u8 mask, u8 data)
|
||||
{
|
||||
int ret;
|
||||
u8 val;
|
||||
u8 val = 0;
|
||||
|
||||
if (mask != 0xff) {
|
||||
ret = mxl111sf_read_reg(state, addr, &val);
|
||||
|
Loading…
Reference in New Issue
Block a user