mirror of
https://github.com/nelsbrock/dev-tictactoe.git
synced 2026-08-14 20:56:49 +02:00
remove unnecessary return value of tictactoe_game_init
This commit is contained in:
+1
-6
@@ -225,12 +225,7 @@ static int __init tictactoe_init(void)
|
||||
tictactoe_error("failed to allocate game memory\n");
|
||||
return -EFAULT;
|
||||
}
|
||||
ret = tictactoe_game_init(tictactoe_current_game);
|
||||
if (ret) {
|
||||
mutex_unlock(&tictactoe_mutex_current_game);
|
||||
tictactoe_error("failed to initialize game\n");
|
||||
return -EFAULT;
|
||||
}
|
||||
tictactoe_game_init(tictactoe_current_game);
|
||||
mutex_unlock(&tictactoe_mutex_current_game);
|
||||
|
||||
ret = misc_register(&tictactoe_dev);
|
||||
|
||||
Reference in New Issue
Block a user