hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/block/badblocks.c
....@@ -1,18 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Bad block management
34 *
45 * - Heavily based on MD badblocks code from Neil Brown
56 *
67 * Copyright (c) 2015, Intel Corporation.
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms and conditions of the GNU General Public License,
10
- * version 2, as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
- * more details.
168 */
179
1810 #include <linux/badblocks.h>
....@@ -533,7 +525,7 @@
533525 case 3:
534526 if (newline != '\n')
535527 return -EINVAL;
536
- /* fall through */
528
+ fallthrough;
537529 case 2:
538530 if (length <= 0)
539531 return -EINVAL;