Skip to content

Commit

Permalink
Input: sidewinder - fix an oops
Browse files Browse the repository at this point in the history
Dynalloc conversion strikes again...

Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Zinx Verituse authored and Dmitry Torokhov committed Jan 30, 2006
1 parent 2e9d675 commit 847fd5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/joystick/sidewinder.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ static int sw_connect(struct gameport *gameport, struct gameport_driver *drv)
sprintf(sw->name, "Microsoft SideWinder %s", sw_name[sw->type]);
sprintf(sw->phys[i], "%s/input%d", gameport->phys, i);

input_dev = input_allocate_device();
sw->dev[i] = input_dev = input_allocate_device();
if (!input_dev) {
err = -ENOMEM;
goto fail3;
Expand Down

0 comments on commit 847fd5f

Please sign in to comment.