* [PATCH 1/5] staging: vt6656: datarate.c: Use memset instead a for loop
@ 2011-12-01 23:58 Marcos Paulo de Souza
2011-12-02 20:50 ` Dan Carpenter
0 siblings, 1 reply; 2+ messages in thread
From: Marcos Paulo de Souza @ 2011-12-01 23:58 UTC (permalink / raw)
To: linux-kernel
Cc: Marcos Paulo de Souza, Dan Carpenter, Greg Kroah-Hartman,
Forest Bond, devel
As Dan Carpenteder suggested, this makes the atribution more simple.
Signed-off-by: Marcos Paulo de Souza <marcos.mage@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Greg Kroah-Hartman <gregkh@susse.de>
Cc: Forest Bond <forest@alittletooquiet.net>
Cc: devel@driverdev.osuosl.org
---
drivers/staging/vt6656/datarate.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/vt6656/datarate.c b/drivers/staging/vt6656/datarate.c
index 5c2719f..58ca0d4 100644
--- a/drivers/staging/vt6656/datarate.c
+++ b/drivers/staging/vt6656/datarate.c
@@ -69,13 +69,8 @@ void s_vResetCounter(PKnownNodeDB psNodeDBTable);
void s_vResetCounter(PKnownNodeDB psNodeDBTable)
{
- BYTE ii;
-
- // clear statistic counter for auto_rate
- for (ii = 0; ii <= MAX_RATE; ii++) {
- psNodeDBTable->uTxOk[ii] = 0;
- psNodeDBTable->uTxFail[ii] = 0;
- }
+ memset(psNodeDBTable->uTxOk, 0, sizeof(psNodeDBTable->uTxOk));
+ memset(psNodeDBTable->uTxFail, 0, sizeof(psNodeDBTable->uTxFail));
}
/*--------------------- Export Variables --------------------------*/
--
1.7.4.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/5] staging: vt6656: datarate.c: Use memset instead a for loop
2011-12-01 23:58 [PATCH 1/5] staging: vt6656: datarate.c: Use memset instead a for loop Marcos Paulo de Souza
@ 2011-12-02 20:50 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2011-12-02 20:50 UTC (permalink / raw)
To: Marcos Paulo de Souza
Cc: linux-kernel, devel, Forest Bond, Greg Kroah-Hartman
[-- Attachment #1: Type: text/plain, Size: 500 bytes --]
On Thu, Dec 01, 2011 at 11:58:35PM +0000, Marcos Paulo de Souza wrote:
> As Dan Carpenteder suggested, this makes the atribution more simple.
>
> Signed-off-by: Marcos Paulo de Souza <marcos.mage@gmail.com>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Normally I wouldn't get the Signed-off-by line here. People can
only can sign things for themselves, but in this case it's fine,
whatever.
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
regards,
dan carpenter
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-02 20:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-01 23:58 [PATCH 1/5] staging: vt6656: datarate.c: Use memset instead a for loop Marcos Paulo de Souza
2011-12-02 20:50 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox