From: Carlo Perassi <carlo@linux.it>
To: kernel-janitors@vger.kernel.org
Subject: [Kernel-janitors] [PATCH] some casts removed
Date: Fri, 16 Jan 2004 15:22:03 +0000 [thread overview]
Message-ID: <20040116152203.GA5416@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 172 bytes --]
Hi.
Line 346 of TODO states:
"Lots of unnecessary casts in drivers can be removed"
This micro patch removes some of them.
--
Carlo Perassi - http://www.linux.it/~carlo/
[-- Attachment #2: rsuc --]
[-- Type: text/plain, Size: 1413 bytes --]
--- linux-2.6.1/drivers/net/dl2k.c 2004-01-16 15:56:02.000000000 +0100
+++ linux-2.6.1_mod/drivers/net/dl2k.c 2004-01-16 15:57:01.000000000 +0100
@@ -745,7 +745,7 @@
static void
rio_free_tx (struct net_device *dev, int irq)
{
- struct netdev_private *np = (struct netdev_private *) dev->priv;
+ struct netdev_private *np = dev->priv;
int entry = np->old_tx % TX_RING_SIZE;
int tx_use = 0;
unsigned long flag = 0;
@@ -855,7 +855,7 @@
static int
receive_packet (struct net_device *dev)
{
- struct netdev_private *np = (struct netdev_private *) dev->priv;
+ struct netdev_private *np = dev->priv;
int entry = np->cur_rx % RX_RING_SIZE;
int cnt = 30;
--- linux-2.6.1/drivers/net/fealnx.c 2004-01-16 15:56:02.000000000 +0100
+++ linux-2.6.1_mod/drivers/net/fealnx.c 2004-01-16 15:58:04.000000000 +0100
@@ -1426,7 +1426,7 @@
writel(0, dev->base_addr + IMR);
ioaddr = dev->base_addr;
- np = (struct netdev_private *) dev->priv;
+ np = dev->priv;
do {
u32 intr_status = readl(ioaddr + ISR);
--- linux-2.6.1/drivers/net/sundance.c 2004-01-16 15:56:02.000000000 +0100
+++ linux-2.6.1_mod/drivers/net/sundance.c 2004-01-16 15:57:16.000000000 +0100
@@ -1136,7 +1136,7 @@
static int
reset_tx (struct net_device *dev)
{
- struct netdev_private *np = (struct netdev_private*) dev->priv;
+ struct netdev_private *np = dev->priv;
long ioaddr = dev->base_addr;
struct sk_buff *skb;
int i;
[-- Attachment #3: Type: text/plain, Size: 163 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
reply other threads:[~2004-01-16 15:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040116152203.GA5416@localhost \
--to=carlo@linux.it \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.