[2.1.82] unused variable in floppy.c (UP kernel.)

Niels Kristian Bech Jensen (nkbj@image.dk)
Tue, 27 Jan 1998 19:23:21 +0100 (MET)


Hi,
This patch removes a warning I get when building linux-2.1.82 as a UP
kernel. I build the floppy driver as a module.

--- linux-2.1.82/drivers/block/floppy.c Sat Jan 24 07:28:17 1998
+++ linux/drivers/block/floppy.c Tue Jan 27 19:18:41 1998
@@ -1710,7 +1710,9 @@
} while ((ST0 & 0x83) != UNIT(current_drive) && inr == 2);
}
if (handler) {
+#ifdef __SMP__
int cpu = smp_processor_id();
+#endif
if(softirq_trylock(cpu)) {
/* got the lock, call the handler immediately */
handler();

--
Med venlig hilsen / Best regards
                                                              nkbj@image.dk
Niels Kristian Bech Jensen                       http://www.image.dk/~nkbj/