[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/17] Disable unused variables
From: |
Guillem Jover |
Subject: |
[PATCH 12/17] Disable unused variables |
Date: |
Thu, 25 Aug 2011 15:22:35 +0200 |
* i386/i386at/com.c (comstart): Disable `i' variable.
* linux/src/drivers/net/at1700.c (net_close): Disable `lp' variable.
* linux/dev/include/linux/blk.h (end_request): Disable `nsect' variable
on MACH.
---
i386/i386at/com.c | 2 ++
linux/dev/include/linux/blk.h | 2 ++
linux/src/drivers/net/at1700.c | 2 ++
3 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/i386/i386at/com.c b/i386/i386at/com.c
index 325e099..f6d5656 100644
--- a/i386/i386at/com.c
+++ b/i386/i386at/com.c
@@ -622,7 +622,9 @@ comstart(tp)
struct tty *tp;
{
char nch;
+#if 0
int i;
+#endif
if (tp->t_state & (TS_TIMEOUT|TS_TTSTOP|TS_BUSY)) {
comst_1++;
diff --git a/linux/dev/include/linux/blk.h b/linux/dev/include/linux/blk.h
index 852853c..412b864 100644
--- a/linux/dev/include/linux/blk.h
+++ b/linux/dev/include/linux/blk.h
@@ -385,7 +385,9 @@ static void end_request(int uptodate) {
struct request *req = CURRENT;
#endif /* IDE_DRIVER */
struct buffer_head * bh;
+#ifndef MACH
int nsect;
+#endif
req->errors = 0;
if (!uptodate) {
diff --git a/linux/src/drivers/net/at1700.c b/linux/src/drivers/net/at1700.c
index 953c188..9e42ab4 100644
--- a/linux/src/drivers/net/at1700.c
+++ b/linux/src/drivers/net/at1700.c
@@ -595,7 +595,9 @@ net_rx(struct device *dev)
/* The inverse routine to net_open(). */
static int net_close(struct device *dev)
{
+#if 0
struct net_local *lp = (struct net_local *)dev->priv;
+#endif
int ioaddr = dev->base_addr;
dev->tbusy = 1;
--
1.7.5.4
- Re: [PATCH 02/17] Enable silent builds by default if available, (continued)
[PATCH 14/17] Fix initialization from incompatible pointer type, Guillem Jover, 2011/08/25
[PATCH 07/17] Add prototype for log function, Guillem Jover, 2011/08/25
[PATCH 17/17] Initialize the new map entry when it's a projected buffer, Guillem Jover, 2011/08/25
[PATCH 12/17] Disable unused variables,
Guillem Jover <=
[PATCH 15/17] Move cdrom_sleep() definition where it belongs, Guillem Jover, 2011/08/25
[PATCH 11/17] Remove unused variables, Guillem Jover, 2011/08/25
[PATCH 10/17] Remove ident tags producing preprocessor warnings, Guillem Jover, 2011/08/25