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

Commit 15aafa2f authored by Jeff Garzik's avatar Jeff Garzik Committed by Linus Torvalds
Browse files

Remove pointless casts from void pointers



Mostly in and around irq handlers.

Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: "Luck Tony" <tony.luck@intel.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: default avatarDmitry Torokhov <dtor@mail.ru>
Cc: Karsten Keil <kkeil@suse.de>
Acked-by: default avatar"John W. Linville" <linville@tuxdriver.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: David Brownell <david-b@pacbell.net>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Acked-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
Acked-by: default avatarHolger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bcfbf84d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -100,11 +100,11 @@ u16 sn_ioboard_to_pci_bus(struct pci_bus *pci_bus)
static irqreturn_t
pcibr_error_intr_handler(int irq, void *arg)
{
	struct pcibus_info *soft = (struct pcibus_info *)arg;
	struct pcibus_info *soft = arg;

	if (sal_pcibr_error_interrupt(soft) < 0) {
	if (sal_pcibr_error_interrupt(soft) < 0)
		panic("pcibr_error_intr_handler(): Fatal Bridge Error");
	}

	return IRQ_HANDLED;
}

+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ unsigned char cia_able_irq(struct ciabase *base, unsigned char mask)

static irqreturn_t cia_handler(int irq, void *dev_id)
{
	struct ciabase *base = (struct ciabase *)dev_id;
	struct ciabase *base = dev_id;
	int mach_irq;
	unsigned char ints;

+1 −1
Original line number Diff line number Diff line
@@ -418,7 +418,7 @@ scc_enet_rx(struct net_device *dev)
	struct	sk_buff *skb;
	ushort	pkt_len;

	cep = (struct scc_enet_private *)dev->priv;
	cep = dev->priv;

	/* First, grab all of the stats for the incoming packet.
	 * These get messed up if we get called due to a busy condition.
+1 −1
Original line number Diff line number Diff line
@@ -682,7 +682,7 @@ fcc_enet_rx(struct net_device *dev)
	struct	sk_buff *skb;
	ushort	pkt_len;

	cep = (struct fcc_enet_private *)dev->priv;
	cep = dev->priv;

	/* First, grab all of the stats for the incoming packet.
	 * These get messed up if we get called due to a busy condition.
+2 −2
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ struct h3600_dev {
static irqreturn_t action_button_handler(int irq, void *dev_id)
{
	int down = (GPLR & GPIO_BITSY_ACTION_BUTTON) ? 0 : 1;
	struct input_dev *dev = (struct input_dev *) dev_id;
	struct input_dev *dev = dev_id;

	input_report_key(dev, KEY_ENTER, down);
	input_sync(dev);
@@ -120,7 +120,7 @@ static irqreturn_t action_button_handler(int irq, void *dev_id)
static irqreturn_t npower_button_handler(int irq, void *dev_id)
{
	int down = (GPLR & GPIO_BITSY_NPOWER_BUTTON) ? 0 : 1;
	struct input_dev *dev = (struct input_dev *) dev_id;
	struct input_dev *dev = dev_id;

	/*
	 * This interrupt is only called when we release the key. So we have
Loading