Re: [PATCH] input: Silence 'unused variable' warning in iforce joystick driver

2007-08-30 Thread Jesper Juhl
k/iforce/iforce-packets.c: In function 'iforce_get_id_packet': drivers/input/joystick/iforce/iforce-packets.c:249: warning: unused variable 'status' if CONFIG_JOYSTICK_IFORCE_USB is not defined. The warning is easy to avoid by simply moving the variable inside the o

[PATCH] input: Silence 'unused variable' warning in iforce joystick driver

2007-08-30 Thread Jesper Juhl
e warning is easy to avoid by simply moving the variable inside the only case in the switch that actually use it. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- diff --git a/drivers/input/joystick/iforce/iforce-packets.c b/drivers/input/joystick/iforce/iforce-packets.c index 3154ccd..48

Re: [PATCH][hid] Fix a NULL pointer dereference when we fail to allocate memory

2007-07-30 Thread Jesper Juhl
On 22/07/07, Jiri Slaby <[EMAIL PROTECTED]> wrote: > Jesper Juhl napsal(a): > > drivers/hid/usbhid/hid-core.c |3 ++- > > 1 files changed, 2 insertions(+), 1 deletions(-) > > > > diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c

[PATCH][hid] Fix a NULL pointer dereference when we fail to allocate memory

2007-07-21 Thread Jesper Juhl
abel after the problematic calls to usb_free_urb() and jumps to that one instead, in the problem case. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- drivers/hid/usbhid/hid-core.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/hid/usbhid/hid-core.c

[PATCH][08/37] Clean up duplicate includes in drivers/input/

2007-07-21 Thread Jesper Juhl
Hi, This patch cleans up duplicate includes in drivers/input/ Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index 7392122..f0b22b8 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/d