mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.4] various "unused" warnings
@ 2004-08-13 19:21 O.Sezer
  0 siblings, 0 replies; only message in thread
From: O.Sezer @ 2004-08-13 19:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: marcelo.tosatti

[-- Attachment #1: Type: text/plain, Size: 10 bytes --]

$SUBJECT


[-- Attachment #2: riva-unused.diff --]
[-- Type: text/plain, Size: 390 bytes --]

--- 27rc5~/drivers/video/riva/fbdev.c	2004-08-07 14:02:36.000000000 +0300
+++ 27rc5/drivers/video/riva/fbdev.c	2004-08-07 14:09:39.000000000 +0300
@@ -2221,7 +2221,6 @@
 	release_mem_region(rinfo->fb_base_phys, rinfo->base1_region_size);
 err_out_free_base0:
 	release_mem_region(rinfo->ctrl_base_phys, rinfo->base0_region_size);
-err_out_kfree:
 	kfree(rinfo);
 err_out:
 	return -ENODEV;

[-- Attachment #3: sstfb-fixes.diff --]
[-- Type: text/plain, Size: 717 bytes --]

--- 27rc5~/drivers/video/sstfb.c	2004-02-18 15:36:31.000000000 +0200
+++ 27rc5/drivers/video/sstfb.c	2004-08-07 14:09:39.000000000 +0300
@@ -968,7 +968,6 @@
                        struct fb_info *info)
 {
 #define sst_info	((struct sstfb_info *) info)
-	int i;
 	u_long p;
 	u32 tmp, val;
 	u32 fbiinit0;
@@ -980,12 +979,14 @@
 		
 #if (SST_DEBUG_VAR >0)
 	/* tmp ioctl : dumps fb_display[0-5] */
-	case _IO('F', 0xdb):		/* 0x46db */
+	case _IO('F', 0xdb):		/* 0x46db */ {
+		int i;
 		f_dprintk("dumping fb_display[0-5].var\n");
 		for (i = 0 ; i< 6 ; i++) {
 			print_var(&fb_display[i].var, "var(%d)", i);
 		}
 		return 0;
+	}
 #endif /* (SST_DEBUG_VAR >0) */
 
 	/* fills the lfb up to given count of pixels */

[-- Attachment #4: matroxfb_g450-unused.diff --]
[-- Type: text/plain, Size: 349 bytes --]

--- 27rc5~/drivers/video/matrox/matroxfb_g450.c	2003-06-13 17:51:37.000000000 +0300
+++ 27rc5/drivers/video/matrox/matroxfb_g450.c	2004-08-07 14:09:39.000000000 +0300
@@ -558,7 +558,7 @@
 }
 
 static int matroxfb_g450_verify_mode(void* md, u_int32_t arg) {
-	MINFO_FROM(md);
+//	MINFO_FROM(md);
 	
 	switch (arg) {
 		case MATROXFB_OUTPUT_MODE_PAL:

[-- Attachment #5: sddr09-unused.diff --]
[-- Type: text/plain, Size: 462 bytes --]

--- 27rc5~/drivers/usb/storage/sddr09.c	2003-08-25 14:44:42.000000000 +0300
+++ 27rc5/drivers/usb/storage/sddr09.c	2004-08-07 14:09:39.000000000 +0300
@@ -444,6 +444,7 @@
  * byte 0: opcode: 03
  * byte 4: data length
  */
+#if 0
 static int
 sddr09_request_sense(struct us_data *us, unsigned char *sensebuf, int buflen) {
 	unsigned char command[12] = {
@@ -465,7 +466,7 @@
 
 	return result;
 }
-
+#endif
 /*
  * Read Command: 12 bytes.
  * byte 0: opcode: E8

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-13 19:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-13 19:21 [PATCH 2.4] various "unused" warnings O.Sezer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®