patch-2.4.23 linux-2.4.23/arch/ia64/kernel/salinfo.c

Next file: linux-2.4.23/arch/ia64/kernel/setup.c
Previous file: linux-2.4.23/arch/ia64/kernel/ptrace.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/arch/ia64/kernel/salinfo.c linux-2.4.23/arch/ia64/kernel/salinfo.c
@@ -42,7 +42,7 @@
 	{ "itc_drift",		IA64_SAL_PLATFORM_FEATURE_ITC_DRIFT, },
 };
 
-#define NR_SALINFO_ENTRIES (sizeof(salinfo_entries)/sizeof(salinfo_entry_t))
+#define NR_SALINFO_ENTRIES ARRAY_SIZE(salinfo_entries)
 
 static char *salinfo_log_name[] = {
 	"mca",
@@ -98,9 +98,6 @@
 static int
 salinfo_event_open(struct inode *inode, struct file *file)
 {
-	struct proc_dir_entry *entry = (struct proc_dir_entry *) inode->u.generic_ip;
-	struct salinfo_event *event = entry->data;
-
 	if (!suser())
 		return -EPERM;
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)