Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1245375
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Christophe JAILLET <christophe.jaillet@wanadoo.fr> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] NFC: nfcwilink: Drop a useless static qualifier |
| Date | Tue, 13 Oct 2015 08:40:01 +0200 |
| Message-ID | <qj1pD-6O2-9@gated-at.bofh.it> (permalink) |
| X-Original-To | lauro.venancio@openbossa.org, aloisio.almeida@openbossa.org, sameo@linux.intel.com |
| X-Me-Helo | localhost.localdomain |
| X-Me-Auth | Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= |
| X-Me-Date | Tue, 13 Oct 2015 08:31:09 +0200 |
| X-Me-IP | 92.140.185.80 |
| X-Mailer | git-send-email 2.1.4 |
| X-Antivirus | avast! (VPS 151012-2, 12/10/2015), Outbound message |
| X-Antivirus-Status | Clean |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 30 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr> |
| X-Original-Date | Tue, 13 Oct 2015 08:31:04 +0200 |
| X-Original-Message-ID | <1444717864-7109-1-git-send-email-christophe.jaillet@wanadoo.fr> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1245375 |
Show key headers only | View raw
There is no need to have the 'struct nfcwilink *drv' variable static in the
probe function.
It only wastes a few bytes of memory.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
drivers/nfc/nfcwilink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nfc/nfcwilink.c b/drivers/nfc/nfcwilink.c
index ce2e2cf..f81e500 100644
--- a/drivers/nfc/nfcwilink.c
+++ b/drivers/nfc/nfcwilink.c
@@ -497,7 +497,7 @@ static struct nci_ops nfcwilink_ops = {
static int nfcwilink_probe(struct platform_device *pdev)
{
- static struct nfcwilink *drv;
+ struct nfcwilink *drv;
int rc;
__u32 protocols;
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] NFC: nfcwilink: Drop a useless static qualifier Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2015-10-13 08:40 +0200
csiph-web