Skip to content

Commit 9475af0

Browse files
Chen Zhoumpe
Chen Zhou
authored andcommitted
PCI: rpaphp: Remove unused variable 'value'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/pci/hotplug/rpaphp_core.c: In function is_php_type: drivers/pci/hotplug/rpaphp_core.c:291:16: warning: variable value set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot <[email protected]> Signed-off-by: Chen Zhou <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 697ece7 commit 9475af0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/pci/hotplug/rpaphp_core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,10 @@ EXPORT_SYMBOL_GPL(rpaphp_check_drc_props);
288288

289289
static int is_php_type(char *drc_type)
290290
{
291-
unsigned long value;
292291
char *endptr;
293292

294293
/* PCI Hotplug nodes have an integer for drc_type */
295-
value = simple_strtoul(drc_type, &endptr, 10);
294+
simple_strtoul(drc_type, &endptr, 10);
296295
if (endptr == drc_type)
297296
return 0;
298297

0 commit comments

Comments
 (0)