From: Dan Carpenter <hidden> Date: 2017-07-28 14:45:11
My static checker complains that, if the allocation in mcs_get_reg()
fails, it means we use "rval" without initializing it. Small
allocations never fail in current kernels so it's not a major concern
but it's simple enough to silence the warning.
Signed-off-by: Dan Carpenter <redacted>
Fixing a bogus warning by assigning a signed constant to an
unsigned variable doesn't really make me all that happy.
I don't think I'll apply this, sorry.
Fixing a bogus warning by assigning a signed constant to an
unsigned variable doesn't really make me all that happy.
I don't think I'll apply this, sorry.
There's no guarantee that small kmallocs will always succeed in future
kernels so it's not *totally* bogus.
regards,
dan carpenter
Fixing a bogus warning by assigning a signed constant to an
unsigned variable doesn't really make me all that happy.
I don't think I'll apply this, sorry.
There's no guarantee that small kmallocs will always succeed in future
kernels so it's not *totally* bogus.
Perhaps the burdon of initializing the value belongs in
mcs_get_reg(), and you can set it properly to 0xffff
instead of -1.
Ok?
Fixing a bogus warning by assigning a signed constant to an
unsigned variable doesn't really make me all that happy.
I don't think I'll apply this, sorry.
There's no guarantee that small kmallocs will always succeed in future
kernels so it's not *totally* bogus.
Perhaps the burdon of initializing the value belongs in
mcs_get_reg(), and you can set it properly to 0xffff
instead of -1.
Ok?