if (grip->mode[slot] != GRIP_MODE_NONE) 
if (grip->port[slot]->mode != GRIP_MODE_NONE) 
static int slots_valid(struct grip_mp *grip){	int flags, slot, invalid = 0, active = 0;	flags = get_and_decode_packet(grip, 0);	if (!(flags & IO_GOT_PACKET))		return 0;	for (slot = 0; slot < 4; slot++) {		if (grip->mode[slot] == GRIP_MODE_RESET)			invalid = 1;		if (grip->mode[slot] != GRIP_MODE_NONE)			active = 1;	}	/* Return true if no active slot but multiport sent all its data */	if (!active)		return (flags & IO_DONE) ? 1 : 0;	/* Return false if invalid device code received */	return invalid ? 0 : 1;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/17dd3f0f7aa729a042af5d3318ff9b3e7781b45b/grip_mp.c/buggy/drivers/input/joystick/grip_mp.c