Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754320Ab3EVHOE (ORCPT ); Wed, 22 May 2013 03:14:04 -0400 Received: from lnfm1.sai.msu.ru ([93.180.26.255]:47904 "EHLO lnfm1.sai.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752984Ab3EVHOB (ORCPT ); Wed, 22 May 2013 03:14:01 -0400 Date: Wed, 22 May 2013 11:13:38 +0400 (MSK) From: "Matwey V. Kornilov" To: Stephen Rothwell cc: Greg KH , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, jirislaby@gmail.com, linux-serial@vger.kernel.org Subject: [PATCH] tty: mxser: Fix build warning introduced by dfc7b837c7f9 (Re: linux-next: build warning after merge of the tty.current tree) In-Reply-To: <20130522133722.d52b827e455275dfdecf12dd@canb.auug.org.au> Message-ID: References: <20130522133722.d52b827e455275dfdecf12dd@canb.auug.org.au> User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1133 Lines: 36 From: Matwey V. Kornilov Fix build warning at mxser.c introduced by dfc7b837c7f9 Signed-off-by: Matwey V. Kornilov --- diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c index f97b196..4c4a236 100644 --- a/drivers/tty/mxser.c +++ b/drivers/tty/mxser.c @@ -1674,15 +1674,15 @@ static int mxser_ioctl(struct tty_struct *tty, return mxser_ioctl_special(cmd, argp); if (cmd == MOXA_SET_OP_MODE || cmd == MOXA_GET_OP_MODE) { - if (info->board->chip_flag != MOXA_MUST_MU860_HWID) - return -EFAULT; - int p; unsigned long opmode; static unsigned char ModeMask[] = { 0xfc, 0xf3, 0xcf, 0x3f }; int shiftbit; unsigned char val, mask; + if (info->board->chip_flag != MOXA_MUST_MU860_HWID) + return -EFAULT; + p = tty->index % 4; if (cmd == MOXA_SET_OP_MODE) { if (get_user(opmode, (int __user *) argp)) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/