hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/sound/firewire/digi00x/digi00x-proc.c
....@@ -1,9 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * digi00x-proc.c - a part of driver for Digidesign Digi 002/003 family
34 *
45 * Copyright (c) 2014-2015 Takashi Sakamoto
5
- *
6
- * Licensed under the terms of the GNU General Public License, version 2.
76 */
87
98 #include "digi00x.h"
....@@ -80,20 +79,8 @@
8079 return;
8180
8281 root->mode = S_IFDIR | 0555;
83
- if (snd_info_register(root) < 0) {
84
- snd_info_free_entry(root);
85
- return;
86
- }
8782
8883 entry = snd_info_create_card_entry(dg00x->card, "clock", root);
89
- if (entry == NULL) {
90
- snd_info_free_entry(root);
91
- return;
92
- }
93
-
94
- snd_info_set_text_ops(entry, dg00x, proc_read_clock);
95
- if (snd_info_register(entry) < 0) {
96
- snd_info_free_entry(entry);
97
- snd_info_free_entry(root);
98
- }
84
+ if (entry)
85
+ snd_info_set_text_ops(entry, dg00x, proc_read_clock);
9986 }