forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/usb/gspca/stv0680.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * STV0680 USB Camera Driver
34 *
....@@ -10,17 +11,6 @@
1011 * Thanks to STMicroelectronics for information on the usb commands, and
1112 * to Steve Miller at STM for his help and encouragement while I was
1213 * writing this driver.
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License as published by
16
- * the Free Software Foundation; either version 2 of the License, or
17
- * (at your option) any later version.
18
- *
19
- * This program is distributed in the hope that it will be useful,
20
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
- * GNU General Public License for more details.
23
- *
2414 */
2515
2616 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -45,7 +35,7 @@
4535 static int stv_sndctrl(struct gspca_dev *gspca_dev, int set, u8 req, u16 val,
4636 int size)
4737 {
48
- int ret = -1;
38
+ int ret;
4939 u8 req_type = 0;
5040 unsigned int pipe = 0;
5141