Message ID | 0255c4a7-fff6-f427-e8a1-951b44ef3f54@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/joystick/turbografx.c b/drivers/input/joystick/turbografx.c index e2685753e460..454d4c032292 100644 --- a/drivers/input/joystick/turbografx.c +++ b/drivers/input/joystick/turbografx.c @@ -192,10 +192,8 @@ static void tgfx_attach(struct parport *pp) } tgfx = kzalloc(sizeof(struct tgfx), GFP_KERNEL); - if (!tgfx) { - printk(KERN_ERR "turbografx.c: Not enough memory\n"); + if (!tgfx) goto err_unreg_pardev; - } mutex_init(&tgfx->sem); tgfx->pd = pd;