提交 1fd16a31 编写于 作者: C Christian Colic 提交者: Greg Kroah-Hartman

staging: speakup: (coding style) Add braces around all arms of if-statement

Fix checkpatch error: "braces {} should be used on all arms of this statement"
by adding the necessary braces around the "if".
Signed-off-by: NChristian Colic <colic.christian@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a4efe6fd
......@@ -76,9 +76,9 @@ void speakup_register_devsynth(void)
if (misc_registered != 0)
return;
/* zero it so if register fails, deregister will not ref invalid ptrs */
if (misc_register(&synth_device))
if (misc_register(&synth_device)) {
pr_warn("Couldn't initialize miscdevice /dev/synth.\n");
else {
} else {
pr_info("initialized device: /dev/synth, node (MAJOR %d, MINOR %d)\n",
MISC_MAJOR, SYNTH_MINOR);
misc_registered = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册