| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Bad block management |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * - Heavily based on MD badblocks code from Neil Brown |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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. |
|---|
| 16 | 8 | */ |
|---|
| 17 | 9 | |
|---|
| 18 | 10 | #include <linux/badblocks.h> |
|---|
| .. | .. |
|---|
| 533 | 525 | case 3: |
|---|
| 534 | 526 | if (newline != '\n') |
|---|
| 535 | 527 | return -EINVAL; |
|---|
| 536 | | - /* fall through */ |
|---|
| 528 | + fallthrough; |
|---|
| 537 | 529 | case 2: |
|---|
| 538 | 530 | if (length <= 0) |
|---|
| 539 | 531 | return -EINVAL; |
|---|