2018-09-12 10:02:57

by Philipp Klocke

[permalink] [raw]
Subject: Re: [PATCH] drbd: avoid clang warning about pointless switch statement

Hello,

I've also stumbled across the "warning: no case matching constant switch
condition '0'" and wanted to fix it.
As your suggestion is probably the best way, I wanted to ask why it
didn't get merged yet.

Maybe the patch got lost?

Best regards,
Philipp




2018-09-12 10:25:15

by Arnd Bergmann

[permalink] [raw]
Subject: Re: [PATCH] drbd: avoid clang warning about pointless switch statement

On Wed, Sep 12, 2018 at 12:01 PM Philipp Klocke <[email protected]> wrote:
>
> Hello,
>
> I've also stumbled across the "warning: no case matching constant switch
> condition '0'" and wanted to fix it.
> As your suggestion is probably the best way, I wanted to ask why it
> didn't get merged yet.
>
> Maybe the patch got lost?

I think I never followed up on the patch when it didn't get merged the
first time around. If you have a copy at hand, could you add your
Signed-off-by and send a version that applies to the current kernel?

Arnd