patch-2.3.30 linux/drivers/pnp/isapnp_proc.c
Next file: linux/drivers/scsi/aic7xxx.c
Previous file: linux/drivers/pnp/isapnp.c
Back to the patch index
Back to the overall index
- Lines: 38
- Date:
Sun Dec 5 08:42:03 1999
- Orig file:
v2.3.29/linux/drivers/pnp/isapnp_proc.c
- Orig date:
Thu Nov 11 20:11:43 1999
diff -u --recursive --new-file v2.3.29/linux/drivers/pnp/isapnp_proc.c linux/drivers/pnp/isapnp_proc.c
@@ -212,22 +212,6 @@
static struct inode_operations isapnp_info_entry_inode_operations =
{
&isapnp_info_entry_operations, /* default sound info directory file-ops */
- NULL, /* create */
- NULL, /* lookup */
- NULL, /* link */
- NULL, /* unlink */
- NULL, /* symlink */
- NULL, /* mkdir */
- NULL, /* rmdir */
- NULL, /* mknod */
- NULL, /* rename */
- NULL, /* readlink */
- NULL, /* follow_link */
- NULL, /* readpage */
- NULL, /* writepage */
- NULL, /* bmap */
- NULL, /* truncate */
- NULL /* permission */
};
static int __init isapnp_proc_init(void)
@@ -605,11 +589,11 @@
static unsigned char isapnp_get_hex(unsigned char c)
{
- if (c >= '0' || c <= '9')
+ if (c >= '0' && c <= '9')
return c - '0';
- if (c >= 'a' || c <= 'f')
+ if (c >= 'a' && c <= 'f')
return (c - 'a') + 10;
- if (c >= 'A' || c <= 'F')
+ if (c >= 'A' && c <= 'F')
return (c - 'A') + 10;
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)