Skip to content

Commit 2a58dd7

Browse files
YueHaibingdtor
authored andcommitted
Input: olpc_apsp - remove set but not used variable 'np'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/input/serio/olpc_apsp.c: In function 'olpc_apsp_probe': drivers/input/serio/olpc_apsp.c:192:22: warning: variable 'np' set but not used [-Wunused-but-set-variable] It never used since introduction in commit b56ece9 ("Input: add OLPC AP-SP driver") Signed-off-by: YueHaibing <[email protected]> Acked-by: Lubomir Rintel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent ed22cee commit 2a58dd7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/input/serio/olpc_apsp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,12 @@ static int olpc_apsp_probe(struct platform_device *pdev)
189189
struct serio *kb_serio, *pad_serio;
190190
struct olpc_apsp *priv;
191191
struct resource *res;
192-
struct device_node *np;
193192
int error;
194193

195194
priv = devm_kzalloc(&pdev->dev, sizeof(struct olpc_apsp), GFP_KERNEL);
196195
if (!priv)
197196
return -ENOMEM;
198197

199-
np = pdev->dev.of_node;
200198
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
201199
priv->base = devm_ioremap_resource(&pdev->dev, res);
202200
if (IS_ERR(priv->base)) {

0 commit comments

Comments
 (0)