From patchwork Wed Dec 10 12:41:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tilman Schmidt X-Patchwork-Id: 419645 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 6C55F1400B7 for ; Wed, 10 Dec 2014 23:59:58 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755747AbaLJM7z (ORCPT ); Wed, 10 Dec 2014 07:59:55 -0500 Received: from gimli.pxnet.com ([89.1.7.7]:33187 "EHLO mail.pxnet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755469AbaLJM7y (ORCPT ); Wed, 10 Dec 2014 07:59:54 -0500 X-Greylist: delayed 1056 seconds by postgrey-1.27 at vger.kernel.org; Wed, 10 Dec 2014 07:59:51 EST Received: from xenon.ts.pxnet.com (p5DE8FFBB.dip0.t-ipconnect.de [93.232.255.187]) (user=ts author=<> mech=DIGEST-MD5 bits=0) by mail.pxnet.com (8.13.8/8.13.8) with ESMTP id sBACg2aF008836 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 10 Dec 2014 13:42:05 +0100 Received: by xenon.ts.pxnet.com (Postfix, from userid 1000) id 015B6140081; Wed, 10 Dec 2014 13:41:55 +0100 (CET) Message-Id: <5467da669ad975e211e19a1b3cb6735c48fb5690.1418214588.git.tilman@imap.cc> In-Reply-To: References: From: Tilman Schmidt Subject: [PATCH 5/5] isdn/capi: correct argument types of command_2_index To: netdev@vger.kernel.org Cc: David Miller , Hansjoerg Lipp , Karsten Keil , isdn4linux@listserv.isdn4linux.de Date: Wed, 10 Dec 2014 13:41:55 +0100 (CET) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.pxnet.com [89.1.7.7]); Wed, 10 Dec 2014 13:42:05 +0100 (CET) X-Scanned-By: MIMEDefang 2.70 on 89.1.7.7 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Utility function command_2_index is always called with arguments of type u8. Adapt its declaration accordingly. Signed-off-by: Tilman Schmidt --- drivers/isdn/capi/capiutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/capi/capiutil.c b/drivers/isdn/capi/capiutil.c index 36c1b37..9846d82 100644 --- a/drivers/isdn/capi/capiutil.c +++ b/drivers/isdn/capi/capiutil.c @@ -201,7 +201,7 @@ static unsigned char *cpars[] = #define structTRcpyovl(x, y, l) memmove(y, x, l) /*-------------------------------------------------------*/ -static unsigned command_2_index(unsigned c, unsigned sc) +static unsigned command_2_index(u8 c, u8 sc) { if (c & 0x80) c = 0x9 + (c & 0x0f);