There's an unused function in drivers/char/pcwd.c, which judging
by the comments in the changelog should be removed.
regards,
-- Dave.diff -urN linux-2.3.99pre4/drivers/char/pcwd.c linux-2.3.99pre4-dj/drivers/char/pcwd.c --- linux-2.3.99pre4/drivers/char/pcwd.c Wed Feb 9 19:42:35 2000 +++ linux-2.3.99pre4-dj/drivers/char/pcwd.c Mon Apr 3 22:47:30 2000 @@ -39,6 +39,7 @@ * 990605 Made changes to code to support Firmware 1.22a, added * fairly useless proc entry. * 990610 removed said useless proc code for the merge <alan> + * 000403 Removed last traces of proc code. <davej> */ #include <linux/module.h> @@ -539,38 +540,6 @@ { outb_p(0x00, current_readport + 2); mode_debug = 0; -} - -static int pcwd_proc_get_info(char *buffer, char **start, off_t offset, - int length, int inout) -{ - int len; - off_t begin = 0; - - revision = get_revision(); - len = sprintf(buffer, "Version = " WD_VER "\n"); - - if (revision == PCWD_REVISION_A) - len += sprintf(buffer + len, "Revision = A\n"); - else - len += sprintf(buffer + len, "Revision = C\n"); - - if (supports_temp) { - unsigned short c = inb(current_readport); - - len += sprintf(buffer + len, "Temp = Yes\n" - "Current temp = %d (Celsius)\n", - c); - } else - len += sprintf(buffer + len, "Temp = No\n"); - - *start = buffer + (offset); - len -= offset; - - if (len > length) - len = length; - - return len; } static struct file_operations pcwd_fops = {
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:13 EST