hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/sound/firewire/oxfw/oxfw-command.c
....@@ -1,9 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * oxfw_command.c - a part of driver for OXFW970/971 based devices
34 *
45 * Copyright (c) 2014 Takashi Sakamoto
5
- *
6
- * Licensed under the terms of the GNU General Public License, version 2.
76 */
87
98 #include "oxfw.h"
....@@ -39,7 +38,7 @@
3938 else if (err < len + 10)
4039 err = -EIO;
4140 else if (buf[0] == 0x08) /* NOT IMPLEMENTED */
42
- err = -ENOSYS;
41
+ err = -ENXIO;
4342 else if (buf[0] == 0x0a) /* REJECTED */
4443 err = -EINVAL;
4544 else
....@@ -84,7 +83,7 @@
8483 else if (err < 12)
8584 err = -EIO;
8685 else if (buf[0] == 0x08) /* NOT IMPLEMENTED */
87
- err = -ENOSYS;
86
+ err = -ENXIO;
8887 else if (buf[0] == 0x0a) /* REJECTED */
8988 err = -EINVAL;
9089 else if (buf[0] == 0x0b) /* IN TRANSITION */
....@@ -148,7 +147,7 @@
148147 else if (err < 8)
149148 err = -EIO;
150149 else if (buf[0] == 0x08) /* NOT IMPLEMENTED */
151
- err = -ENOSYS;
150
+ err = -ENXIO;
152151 if (err < 0)
153152 goto end;
154153