[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6DB0109E63@AcuExch.aculab.com>
Date: Mon, 26 Sep 2016 16:00:37 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'SF Markus Elfring' <elfring@...rs.sourceforge.net>,
"gigaset307x-common@...ts.sourceforge.net"
<gigaset307x-common@...ts.sourceforge.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Karsten Keil <isdn@...ux-pingi.de>,
Paul Bolle <pebolle@...cali.nl>
CC: LKML <linux-kernel@...r.kernel.org>,
"kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>,
Julia Lawall <julia.lawall@...6.fr>
Subject: RE: [PATCH 5/5] ISDN-Gigaset: Enclose two expressions for the
sizeof operator by parentheses
From: SF Markus Elfring
> Sent: 26 September 2016 16:45
...
> The script "checkpatch.pl" can point information out like the following.
>
> WARNING: sizeof … should be sizeof(…)
...
> ---
> drivers/isdn/gigaset/common.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/isdn/gigaset/common.c b/drivers/isdn/gigaset/common.c
> index 2e9382f..d901ed7 100644
> --- a/drivers/isdn/gigaset/common.c
> +++ b/drivers/isdn/gigaset/common.c
> @@ -53,7 +53,7 @@ void gigaset_dbg_buffer(enum debuglevel level, const unsigned char *msg,
> {
> unsigned char outbuf[80];
> unsigned char c;
> - size_t space = sizeof outbuf - 1;
> + size_t space = sizeof(outbuf - 1);
wrong ...
think that is 7 instead of 79.
David
Powered by blists - more mailing lists