Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mcb: Delete num_cells variable which is not required

The num_cells variable is only used in the dev_dbg print,
but we can directly use the ret variable which also includes the same
value.

Signed-off-by: Andreas Werner <andreas.werner@men.de>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andreas Werner and committed by
Greg Kroah-Hartman
8cd1f9d0 f75564d3

+1 -3
+1 -3
drivers/mcb/mcb-pci.c
··· 35 35 struct resource *res; 36 36 struct priv *priv; 37 37 int ret; 38 - int num_cells; 39 38 unsigned long flags; 40 39 41 40 priv = devm_kzalloc(&pdev->dev, sizeof(struct priv), GFP_KERNEL); ··· 91 92 ret = chameleon_parse_cells(priv->bus, priv->mapbase, priv->base); 92 93 if (ret < 0) 93 94 goto out_mcb_bus; 94 - num_cells = ret; 95 95 96 - dev_dbg(&pdev->dev, "Found %d cells\n", num_cells); 96 + dev_dbg(&pdev->dev, "Found %d cells\n", ret); 97 97 98 98 mcb_bus_add_devices(priv->bus); 99 99