Merge tag 'fallthrough-fixes-clang-5.11-rc1' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-block.git] / lib / cmdline.c
index 9e186234edc0b8e1ad37cb8a3e7e1d5b95071071..b390dd03363bd093a2a270881e1059cb79f96467 100644 (file)
@@ -144,27 +144,28 @@ unsigned long long memparse(const char *ptr, char **retptr)
        case 'E':
        case 'e':
                ret <<= 10;
-               /* fall through */
+               fallthrough;
        case 'P':
        case 'p':
                ret <<= 10;
-               /* fall through */
+               fallthrough;
        case 'T':
        case 't':
                ret <<= 10;
-               /* fall through */
+               fallthrough;
        case 'G':
        case 'g':
                ret <<= 10;
-               /* fall through */
+               fallthrough;
        case 'M':
        case 'm':
                ret <<= 10;
-               /* fall through */
+               fallthrough;
        case 'K':
        case 'k':
                ret <<= 10;
                endptr++;
+               fallthrough;
        default:
                break;
        }