rework code to use longs.
Regards
David Binderman
time-_Base seems to be 50 or 100.
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
index < 0) {
dev_err(css->dev, "failed to find suitable binary\n");
return -EINVAL;
}
Suggest sanity check return value from function first, then if it is ok,
assign it to an unsigned variable.
Regards
David Binderman
fo->PTModeSS = 2;
else if (pRaInfo->HighestRate > 0x0b)
pRaInfo->PTModeSS = 1;
Suggest code rework.
Regards
David Binderman
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.or
i].key, key_size))
continue;
/*
* Found a match; just move the remaining
* entries up.
*/
if (i == num_records) {
Regards
David Binderman
___
devel
ue due to limited range of data type [-Wtype-limits]
Regards
David Binderman
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Hello there,
linux-4.12-rc1/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c:2966]: (style)
Array index 'i' is used before limits check.
Source code is
while (szLine[i] != '{' && i < strlen(szLine))
++ix) /*Nothing else to do*/;
Regards
David Binderman
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Hello there,
linux-4.9-rc1/drivers/staging/lustre/lustre/osc/osc_request.c:973]: (style)
Checking if unsigned variable 'cli.cl_avail_grant' is less than zero.
Source code is
if (cli->cl_avail_grant < 0) {
Suggest code rework.
Regards
Config.HCIExtensionVer >= 1) {
Suggest remove second test.
Regards
David Binderman
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
else
return -EINVAL;
} else if (enabled) { /* 2 */
I am not sure of a suitable fix for this.
Regards
David Binderman
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
estRate> 0x0b)
pRaInfo->PTModeSS = 2;
else if (pRaInfo->HighestRate> 0x0b)
pRaInfo->PTModeSS = 1;
Regards
David Binderman
___
devel mailing list
de...
Hello there,
> On Thu, Jan 22, 2015 at 10:20:44AM +0000, David Binderman wrote:
>> I used the static analyser cppcheck to find these two bugs, but
>> you might be able to find similar problems by using gcc compiler
>> flag -Wlogical-o
!= PORTS ||
module_type != MODEM) {
I used the static analyser cppcheck to find these two bugs, but
you might be able to find similar problems by using gcc compiler
flag -Wlogical-op.
Regards
David Binderman
> Date: Thu, 22 Jan 2015 13:14
David Binderman
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
14 matches
Mail list logo