Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43b54cc9 authored by Christian Engelmayer's avatar Christian Engelmayer Committed by Greg Kroah-Hartman
Browse files

staging: silicom: Remove unused pointer in bypass_init_module()



Pointer 'pbpctl_dev_c' in function bypass_init_module() is unused. Thus remove
it. With the last variable declaration gone, there is no more need for an own
block. Remove it and adapt the indenting accordingly.

Signed-off-by: default avatarChristian Engelmayer <cengelma@gmx.at>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 01cda8d3
Loading
Loading
Loading
Loading
+17 −24
Original line number Diff line number Diff line
@@ -6368,17 +6368,13 @@ static int __init bypass_init_module(void)

	sema_init(&bpctl_sema, 1);
	spin_lock_init(&bpvm_lock);
	{

		struct bpctl_dev *pbpctl_dev_c = NULL;
	for (idx_dev = 0, dev = bpctl_dev_arr;
	     idx_dev < device_num && dev->pdev;
	     idx_dev++, dev++) {
		if (dev->bp_10g9) {
				pbpctl_dev_c = get_status_port_fn(dev);
			if (is_bypass_fn(dev)) {
					printk(KERN_INFO "%s found, ",
					       dev->name);
				printk(KERN_INFO "%s found, ", dev->name);
				dev->bp_fw_ver = bypass_fw_ver(dev);
				printk("firmware version: 0x%x\n",
				       dev->bp_fw_ver);
@@ -6392,9 +6388,6 @@ static int __init bypass_init_module(void)

			init_bypass_wd_auto(dev);
			init_bypass_tpl_auto(dev);

			}

		}
	}