int error = 0 
int error = 0; 
static long d7s_ioctl(struct file *file, unsigned int cmd, unsigned long arg){	__u8 regs = readb(d7s_regs);	__u8 ireg = 0;	int error = 0	if (D7S_MINOR != iminor(file->f_dentry->d_inode))		return -ENODEV;	lock_kernel();	switch (cmd) {	case D7SIOCWR:		/* assign device register values		 * we mask-out D7S_FLIP if in sol_compat mode		 */		if (get_user(ireg, (int __user *) arg)) {			error = -EFAULT;			break;		}		if (0 != sol_compat) {			(regs & D7S_FLIP) ? 				(ireg |= D7S_FLIP) : (ireg &= ~D7S_FLIP);		}		writeb(ireg, d7s_regs);		break;	case D7SIOCRD:		/* retrieve device register values		 * NOTE: Solaris implementation returns D7S_FLIP bit		 * as toggled by user, even though it does not honor it.		 * This driver will not misinform you about the state		 * of your hardware while in sol_compat mode		 */		if (put_user(regs, (int __user *) arg)) {			error = -EFAULT;			break;		}		break;	case D7SIOCTM:		/* toggle device mode-- flip display orientation */		(regs & D7S_FLIP) ? 			(regs &= ~D7S_FLIP) : (regs |= D7S_FLIP);		writeb(regs, d7s_regs);		break;	};	unlock_kernel();	return error;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/a5aac37f1cdbbd1e587fc618e778ddae124e5ac3/display7seg.c/clean/drivers/sbus/char/display7seg.c