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

Commit 261b20da authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Len Brown
Browse files

ISAPNP: remove unused pnp_dev->regs field



The "regs" field in struct pnp_dev is set but never read, so remove it.

Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Acked-By: default avatarRene Herman <rene.herman@gmail.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 62cfb298
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -416,10 +416,7 @@ static struct pnp_dev *__init isapnp_parse_device(struct pnp_card *card,
	if (!dev)
		return NULL;

	dev->regs = tmp[4];
	dev->card = card;
	if (size > 5)
		dev->regs |= tmp[5] << 8;
	dev->capabilities |= PNP_CONFIGURABLE;
	dev->capabilities |= PNP_READ;
	dev->capabilities |= PNP_WRITE;
+0 −1
Original line number Diff line number Diff line
@@ -253,7 +253,6 @@ struct pnp_dev {
	struct pnp_resource_table *res;

	char name[PNP_NAME_LEN];	/* contains a human-readable name */
	unsigned short regs;		/* ISAPnP: supported registers */
	int flags;			/* used by protocols */
	struct proc_dir_entry *procent;	/* device entry in /proc/bus/isapnp */
	void *data;