NFC: nfcwilink: Drop a useless static qualifier
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 13 Oct 2015 06:31:04 +0000 (08:31 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 19 Oct 2015 18:06:13 +0000 (20:06 +0200)
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>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nfcwilink.c

index ce2e2cf54fbc8b86a5dd674e819dd2b85908d978..f81e500e765061fd7d3cf22196260d3647155607 100644 (file)
@@ -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;