Return-path: Received: from mail-vw0-f46.google.com ([209.85.212.46]:49219 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755246Ab1CQSjT (ORCPT ); Thu, 17 Mar 2011 14:39:19 -0400 Received: by vws1 with SMTP id 1so2991837vws.19 for ; Thu, 17 Mar 2011 11:39:18 -0700 (PDT) Message-ID: <4D825504.5050005@lwfinger.net> Date: Thu, 17 Mar 2011 13:37:56 -0500 From: Larry Finger MIME-Version: 1.0 To: Ilia Mirkin CC: Chaoming Li , linux-wireless@vger.kernel.org Subject: Re: [PATCH] rtlwifi: Fix memset argument order References: <1300385337-27760-1-git-send-email-imirkin@alum.mit.edu> In-Reply-To: <1300385337-27760-1-git-send-email-imirkin@alum.mit.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 03/17/2011 01:08 PM, Ilia Mirkin wrote: > These were found using the following semantic match: > // > @@expression E1; type T;@@ > * memset(E1, ... * sizeof(T) * ..., ...); > // > > Also take this opportunity to remove the unnecessary void* casts. > > Signed-off-by: Ilia Mirkin > --- > > 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 Thanks for finding these. Larry