Search Linux Wireless

Re: [PATCH] rtlwifi: Fix memset argument order

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/17/2011 01:08 PM, Ilia Mirkin wrote:
These were found using the following semantic match:
//<smpl>
@@expression E1; type T;@@
* memset(E1, ... * sizeof(T) * ..., ...);
//</smpl>

Also take this opportunity to remove the unnecessary void* casts.

Signed-off-by: Ilia Mirkin<imirkin@xxxxxxxxxxxx>
---

I do not have the hardware for this, but reading the code, it makes
sense that the length of the memsets is currently the second argument
instead of the third.

  drivers/net/wireless/rtlwifi/efuse.c |   31 +++++++++++++++----------------
  1 files changed, 15 insertions(+), 16 deletions(-)

ACK and Tested-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>

Thanks for finding these.

Larry
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux