lkml.org 
[lkml]   [2001]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] : fixed warnings in pdcraid.c
Hi,

This patch fixes the warnings generated when compiling
2.4.14. It fixes the warnings which i have attached
at the end of the mail .....

They're all unused variables.

Manik


diff -r -u /home/manik/linux/orig/linux/drivers/ide/pdcraid.c ./pdcraid.c
--- /home/manik/linux/orig/linux/drivers/ide/pdcraid.c Tue Oct 16 01:57:42 2001
+++ ./pdcraid.c Wed Nov 7 17:09:27 2001
@@ -96,7 +96,7 @@
static int pdcraid_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
{
unsigned int minor;
- unsigned long sectors,*larg;
+ unsigned long sectors;



@@ -280,7 +280,6 @@
*/
return 1;

- outerr:
buffer_IO_error(bh);
return 0;
}
@@ -547,7 +546,6 @@

static __init int pdcraid_init_one(int device,int raidlevel)
{
- request_queue_t *q;
int i,count;

probedisk(0, device, raidlevel);
@@ -585,7 +583,7 @@

static __init int pdcraid_init(void)
{
- int i,retval,device,count=0;
+ int retval,device,count=0;

do {
pdcraid.c: In function `pdcraid_ioctl':
pdcraid.c:99: warning: unused variable `larg'
pdcraid.c: In function `pdcraid0_make_request':
pdcraid.c:283: warning: label `outerr' defined but not used
pdcraid.c: In function `pdcraid_init_one':
pdcraid.c:550: warning: unused variable `q'
pdcraid.c: In function `pdcraid_init':
pdcraid.c:588: warning: unused variable `i'
\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.031 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site