From: Navya Sri Nizamkari <navyasri.tech@gmail.com>
To: outreachy-kernel@googlegroups.com
Subject: [PATCH 0/3] Remove redundant memset.
Date: Sun, 1 Mar 2015 23:29:19 +0530 [thread overview]
Message-ID: <cover.1425232491.git.navyasri.tech@gmail.com> (raw)
The memory area set by the call to memset is immediately
overwritten by the subsequent call to memcpy. Hence, remove the
redundant memset.This patchset removes that memset in all staging
drivers using the following sematic patch:
@@
expression e1,e2,e3,e4;
@@
- memset(e1,e2,e3);
memcpy(e1,e4,e3);
Navya Sri Nizamkari (3):
staging: rtl8188eu: Remove memset.
staging: rtl8188eu: Remove memset.
staging: media: Remove redundant memset.
drivers/staging/media/davinci_vpfe/dm365_ipipeif.c | 1 -
drivers/staging/media/davinci_vpfe/dm365_resizer.c | 1 -
drivers/staging/rtl8188eu/os_dep/mlme_linux.c | 1 -
3 files changed, 3 deletions(-)
--
1.9.1
next reply other threads:[~2015-03-01 17:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-01 17:59 Navya Sri Nizamkari [this message]
2015-03-01 18:00 ` [PATCH 1/3] staging: rtl8188eu: Remove memset Navya Sri Nizamkari
2015-03-01 18:03 ` [PATCH 2/3] staging: media: " Navya Sri Nizamkari
2015-03-01 18:03 ` [PATCH 3/3] staging: media: Remove redundant memset Navya Sri Nizamkari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1425232491.git.navyasri.tech@gmail.com \
--to=navyasri.tech@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.