Re: [PATCH V2] tty/n_gsm.c: use gsm->num to remove mux itself from gsm_mux[]

From: One Thousand Gnomes
Date: Tue Jan 05 2016 - 07:23:10 EST


On Tue, 05 Jan 2016 15:42:52 +0800
Pan Xinhui <xinhui@xxxxxxxxxxxxxxxxxx> wrote:

> From: Pan Xinhui <xinhui.pan@xxxxxxxxxxxxxxxxxx>
>
> There is one filed gsm->num to store mux's index of gsm_mux[]. So use
> gsm->num to remove itself from gsm_mux[] instead of the for-loop
> traverse in gsm_cleanup_mux().
>
> Signed-off-by: Pan Xinhui <xinhui.pan@xxxxxxxxxxxxxxxxxx>

Reviewed-by: Alan Cox <alan@xxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/