patch-2.1.131 linux/drivers/char/joystick/joy-assasin.c

Next file: linux/drivers/char/joystick/joy-console.c
Previous file: linux/drivers/char/joystick/joy-analog.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.130/linux/drivers/char/joystick/joy-assasin.c linux/drivers/char/joystick/joy-assasin.c
@@ -410,9 +410,9 @@
 	int i;
 	struct js_as_info *info;
 
-	while (js_as_port) {
+	while (js_as_port != NULL) {
 		for (i = 0; i < js_as_port->ndevs; i++)
-			if (js_as_port->devs[i])
+			if (js_as_port->devs[i] != NULL)
 				js_unregister_device(js_as_port->devs[i]);
 		info = js_as_port->info;
 		release_region(info->io, 1);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov