patch-2.1.131 linux/drivers/char/joystick/joy-amiga.c
Next file: linux/drivers/char/joystick/joy-analog.c
Previous file: linux/drivers/char/joystick/Config.in
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Tue Dec 1 19:05:05 1998
- Orig file:
v2.1.130/linux/drivers/char/joystick/joy-amiga.c
- Orig date:
Fri Oct 9 13:27:08 1998
diff -u --recursive --new-file v2.1.130/linux/drivers/char/joystick/joy-amiga.c linux/drivers/char/joystick/joy-amiga.c
@@ -148,8 +148,8 @@
#ifdef MODULE
void cleanup_module(void)
{
- while (js_am_port) {
- if (js_am_port->devs[0])
+ while (js_am_port != NULL) {
+ if (js_am_port->devs[0] != NULL)
js_unregister_device(js_am_port->devs[0]);
js_am_port = js_unregister_port(js_am_port);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov