ChangeSet 1.2217, 2005/03/26 13:31:00-08:00, [EMAIL PROTECTED]
[PATCH] m68knommu: remove unused variables in mcfserial.c
Removed unused/unrefernced mcfrs_tmp_buf array in mcfserial.c, and
mutex associated with it.
Signed-off-by: Greg Ungerer <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
mcfserial.c | 12 ------------
1 files changed, 12 deletions(-)
diff -Nru a/drivers/serial/mcfserial.c b/drivers/serial/mcfserial.c
--- a/drivers/serial/mcfserial.c 2005-03-26 17:30:12 -08:00
+++ b/drivers/serial/mcfserial.c 2005-03-26 17:30:12 -08:00
@@ -138,18 +138,6 @@
/*
- * tmp_buf is used as a temporary buffer by serial_write. We need to
- * lock it in case the copy_from_user blocks while swapping in a page,
- * and some other program tries to do a serial write at the same time.
- * Since the lock will only come under contention when the system is
- * swapping and available memory is low, it makes sense to share one
- * buffer across all the serial ports, since it significantly saves
- * memory if large numbers of serial ports are open.
- */
-static unsigned char mcfrs_tmp_buf[4096]; /* This is cheating */
-static DECLARE_MUTEX(mcfrs_tmp_buf_sem);
-
-/*
* Forware declarations...
*/
static void mcfrs_change_speed(struct mcf_serial *info);
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html