mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.5.48 s390 (13/16): xpram driver.
@ 2002-11-18 19:22 Martin Schwidefsky
  0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2002-11-18 19:22 UTC (permalink / raw)
  To: linux-kernel, torvalds

Remove unused variable and add missing return in xpram_setup_blkdev.

diff -urN linux-2.5.48/drivers/s390/block/xpram.c linux-2.5.48-s390/drivers/s390/block/xpram.c
--- linux-2.5.48/drivers/s390/block/xpram.c	Mon Nov 18 05:29:51 2002
+++ linux-2.5.48-s390/drivers/s390/block/xpram.c	Mon Nov 18 20:12:02 2002
@@ -325,7 +325,6 @@
 {
 	struct hd_geometry *geo;
 	unsigned long size;
-	int idx = minor(inode->i_rdev);
  	if (cmd != HDIO_GETGEO)
 		return -EINVAL;
 	/*
@@ -474,6 +473,7 @@
 out:
 	while (i--)
 		put_disk(xpram_disks[i]);
+	return rc;
 }
 
 /*


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

only message in thread, other threads:[~2002-11-18 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-18 19:22 [PATCH] 2.5.48 s390 (13/16): xpram driver Martin Schwidefsky

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

Powered by JetHome