Message ID | 1097eb0c-fd33-3229-90be-417aca3795bd@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/joystick/gamecon.c b/drivers/input/joystick/gamecon.c index 2ffb2e8bdc3b..f6006383d30d 100644 --- a/drivers/input/joystick/gamecon.c +++ b/drivers/input/joystick/gamecon.c @@ -966,10 +966,8 @@ static void gc_attach(struct parport *pp) } gc = kzalloc(sizeof(struct gc), GFP_KERNEL); - if (!gc) { - pr_err("Not enough memory\n"); + if (!gc) goto err_unreg_pardev; - } mutex_init(&gc->mutex); gc->pd = pd;