Re: [Outreachy kernel] [PATCH] staging: speakup: else is not generally useful after a break or return

From: Dan Carpenter
Date: Fri Mar 03 2017 - 12:50:53 EST


On Fri, Mar 03, 2017 at 05:03:09PM +0100, Julia Lawall wrote:
>
>
> On Fri, 3 Mar 2017, Arushi Singhal wrote:
>
> > fixed checkpatch.pl warning: else is not generally useful after a break
> > or return.
> > Removed the else without affecting the logic.
> > Dead code is also eliminated.
>
> The chhange is not correct. There is a big chain of if/else if. The if
> (type == KT_LATIN) can reach the code at the end of the file.
>

Yeah. And KT_CUR as well.

regards,
dan carpenter