if (!grip->mode[0] && !grip->mode[1] && !grip->mode[2] && !grip->mode[3]) { 
if (!grip->port[0]->mode && !grip->port[1]->mode && !grip->port[2]->mode && !grip->port[3]->mode) { 
static int grip_connect(struct gameport *gameport, struct gameport_driver *drv){	struct grip_mp *grip;	int err;	if (!(grip = kzalloc(sizeof(struct grip_mp), GFP_KERNEL)))		return -ENOMEM;	grip->gameport = gameport;	gameport_set_drvdata(gameport, grip);	err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);	if (err)		goto fail1;	gameport_set_poll_handler(gameport, grip_poll);	gameport_set_poll_interval(gameport, 20);	if (!multiport_init(grip)) {		err = -ENODEV;		goto fail2;	}	if (!grip->mode[0] && !grip->mode[1] && !grip->mode[2] && !grip->mode[3]) {		/* nothing plugged in */		err = -ENODEV;		goto fail2;	}	return 0;fail2:	gameport_close(gameport);fail1:	gameport_set_drvdata(gameport, NULL);	kfree(grip);	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/grip_mp.c/buggy/drivers/input/joystick/grip_mp.c