hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/usb/go7007/go7007-driver.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2005-2006 Micronas USA Inc.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License (Version 2) as
6
- * published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
124 */
135
146 #include <linux/module.h>
....@@ -208,7 +200,7 @@
208200 struct i2c_board_info info;
209201
210202 memset(&info, 0, sizeof(info));
211
- strlcpy(info.type, i2c->type, sizeof(info.type));
203
+ strscpy(info.type, i2c->type, sizeof(info.type));
212204 info.addr = i2c->addr;
213205 info.flags = i2c->flags;
214206
....@@ -651,7 +643,7 @@
651643 case 0xD8:
652644 if (go->format == V4L2_PIX_FMT_MJPEG)
653645 vb = frame_boundary(go, vb);
654
- /* fall through */
646
+ fallthrough;
655647 default:
656648 store_byte(vb, 0xFF);
657649 store_byte(vb, buf[i]);