login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
June
»
15
Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' set but not used
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Justin P. Mattock
Subject:
Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' set but not used
Date: Tuesday, June 15, 2010 - 9:51 am
On 06/15/2010 04:43 AM, Jean Delvare wrote:
quoted text
> Hi Justin, > > On Mon, 14 Jun 2010 14:06:12 -0700, Justin P. Mattock wrote: >> On 06/14/2010 01:53 PM, Jean Delvare wrote: >>> Hi Justin, >>> >>> On Mon, 14 Jun 2010 13:26:46 -0700, Justin P. Mattock wrote: >>>> could be a right solution, could be wrong >>>> here is the warning: >>>> CC drivers/i2c/i2c-core.o >>>> drivers/i2c/i2c-core.c: In function 'i2c_register_adapter': >>>> drivers/i2c/i2c-core.c:757:15: warning: variable 'dummy' set but not used >>>> >>>> Signed-off-by: Justin P. Mattock<justinmattock@gmail.com> >>>> >>>> --- >>>> drivers/i2c/i2c-core.c | 2 ++ >>>> 1 files changed, 2 insertions(+), 0 deletions(-) >>>> >>>> diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c >>>> index 1cca263..79c6c26 100644 >>>> --- a/drivers/i2c/i2c-core.c >>>> +++ b/drivers/i2c/i2c-core.c >>>> @@ -794,6 +794,8 @@ static int i2c_register_adapter(struct i2c_adapter *adap) >>>> mutex_lock(&core_lock); >>>> dummy = bus_for_each_drv(&i2c_bus_type, NULL, adap, >>>> __process_new_adapter); >>>> + if(!dummy) >>>> + dummy = 0; >>> >>> One word: scripts/checkpatch.pl >> >> it was this, and/or just take the code out >> (since I'm a newbie) > > I was not (yet) arguing on the code itself, but on its format. Any > patch you send should pass the formatting tests performed by > scripts/checkpatch.pl. Thanks. >
o.k. I'll make sure I run everything through checkpatch.pl before sending anything. Justin P. Mattock --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/8] Fix gcc 4.6.0 set but not used warning messages.
, Justin P. Mattock
, (Mon Jun 14, 1:26 pm)
[PATCH 1/8]reiserfs:stree.c Fix variable set but not used.
, Justin P. Mattock
, (Mon Jun 14, 1:26 pm)
[PATCH 2/8]bluetooth/hci_ldisc.c Fix warning: variable 'tt ...
, Justin P. Mattock
, (Mon Jun 14, 1:26 pm)
[PATCH 3/8]char/hpet.c Fix variable 'hpet' set but not used
, Justin P. Mattock
, (Mon Jun 14, 1:26 pm)
[PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' set bu ...
, Justin P. Mattock
, (Mon Jun 14, 1:26 pm)
[PATCH 5/8]drm:drm_gem Fix warning: variable 'dev' set bu ...
, Justin P. Mattock
, (Mon Jun 14, 1:26 pm)
[PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' set ...
, Justin P. Mattock
, (Mon Jun 14, 1:26 pm)
[PATCH 7/8]ieee1394/sdp2 Fix warning: variable 'unit_chara ...
, Justin P. Mattock
, (Mon Jun 14, 1:26 pm)
[PATCH 8/8]tuners:tuner-simple Fix warning: variable 'tun' ...
, Justin P. Mattock
, (Mon Jun 14, 1:26 pm)
Re: [PATCH 1/8]reiserfs:stree.c Fix variable set but not used.
, Nick Bowler
, (Mon Jun 14, 1:48 pm)
Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' ...
, Jean Delvare
, (Mon Jun 14, 1:53 pm)
Re: [PATCH 1/8]reiserfs:stree.c Fix variable set but not used.
, Edward Shishkin
, (Mon Jun 14, 2:05 pm)
Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' ...
, Justin P. Mattock
, (Mon Jun 14, 2:06 pm)
Re: [PATCH 1/8]reiserfs:stree.c Fix variable set but not used.
, Justin P. Mattock
, (Mon Jun 14, 2:09 pm)
Re: [PATCH 1/8]reiserfs:stree.c Fix variable set but not used.
, Justin P. Mattock
, (Mon Jun 14, 2:21 pm)
Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' ...
, David Daney
, (Mon Jun 14, 2:28 pm)
[PATCH] ieee1394: sbp2: remove unused code
, Stefan Richter
, (Mon Jun 14, 2:44 pm)
Re: [PATCH 1/8]reiserfs:stree.c Fix variable set but not used.
, Edward Shishkin
, (Mon Jun 14, 2:47 pm)
Re: [PATCH] ieee1394: sbp2: remove unused code
, Justin P. Mattock
, (Mon Jun 14, 3:35 pm)
Re: [PATCH 1/8]reiserfs:stree.c Fix variable set but not used.
, Stefan Richter
, (Mon Jun 14, 4:07 pm)
[No subject]
, Stefan Richter
, (Mon Jun 14, 4:22 pm)
Re:
, Justin P. Mattock
, (Mon Jun 14, 4:58 pm)
[PATCH] ieee1394: remove unused variables
, Stefan Richter
, (Mon Jun 14, 5:00 pm)
Re: [PATCH] ieee1394: sbp2: remove unused code
, Stefan Richter
, (Mon Jun 14, 5:05 pm)
Re: (no subject)
, Stefan Richter
, (Mon Jun 14, 5:08 pm)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Valdis.Kletnieks
, (Mon Jun 14, 5:13 pm)
Re: [PATCH] ieee1394: sbp2: remove unused code
, Justin P. Mattock
, (Mon Jun 14, 6:59 pm)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Justin P. Mattock
, (Mon Jun 14, 7:12 pm)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Justin P. Mattock
, (Mon Jun 14, 8:56 pm)
Re: [PATCH 8/8]tuners:tuner-simple Fix warning: variable ' ...
, Mauro Carvalho Chehab
, (Mon Jun 14, 10:16 pm)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Peter Stuge
, (Mon Jun 14, 10:29 pm)
Re: [PATCH 8/8]tuners:tuner-simple Fix warning: variable ' ...
, Justin P. Mattock
, (Mon Jun 14, 10:37 pm)
Re: [PATCH 8/8]tuners:tuner-simple Fix warning: variable ' ...
, Justin P. Mattock
, (Mon Jun 14, 10:50 pm)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Justin P. Mattock
, (Mon Jun 14, 10:58 pm)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Stefan Richter
, (Mon Jun 14, 11:57 pm)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Justin P. Mattock
, (Tue Jun 15, 12:27 am)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Stefan Richter
, (Tue Jun 15, 12:56 am)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Justin P. Mattock
, (Tue Jun 15, 1:30 am)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Jean Delvare
, (Tue Jun 15, 2:19 am)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Justin P. Mattock
, (Tue Jun 15, 2:41 am)
Re: [PATCH 7/8]ieee1394/sdp2 Fix warning: variable 'unit_c ...
, Jean Delvare
, (Tue Jun 15, 4:38 am)
Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' ...
, Jean Delvare
, (Tue Jun 15, 4:43 am)
Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' ...
, David Daney
, (Tue Jun 15, 9:20 am)
Re: [PATCH 6/8]i2c:i2c_core Fix warning: variable 'dummy' ...
, Justin P. Mattock
, (Tue Jun 15, 9:51 am)
Re: [PATCH 7/8]ieee1394/sdp2 Fix warning: variable 'unit_c ...
, Justin P. Mattock
, (Tue Jun 15, 9:52 am)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Sergey V.
, (Tue Jun 15, 11:53 am)
Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' se ...
, Justin P. Mattock
, (Tue Jun 15, 12:36 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v2 11/11] sched: update tg->shares after cpu.shares write
Ingo Molnar
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Eric W. Biederman
Re: init's children list is long and slows reaping children.
Jeffrey V. Merkey
Re: Versioning file system
git
:
Matthieu Moy
Re: Bugs in Gitosis
Daniel Barkalow
Re: About git and the use of SHA-1
David Lang
Re: mingw, windows, crlf/lf, and git
Shawn O. Pearce
Re: Bugs in Gitosis
Junio C Hamano
Re: [PATCH 14/21] Convert ce_path_match() to use struct pathspec
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
David Miller
Re: [PATCH] ipv6: fix display of local and remote sit endpoints
Cong Wang
Re: [PATCH] s2io: add dynamic LRO disable support
Tobacco New Year Promo
Eric Dumazet
Re: [PATCH] net: implement emergency route cache rebulds when gc_elasticity is exc...
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
of/flattree: merge early_init_dt_scan_memory() common code
Linux Kernel Mailing List
b43: N-PHY: add some registers and structs definitions
Linux Kernel Mailing List
powerpc: Move /proc/ppc64 to /proc/powerpc and add symlink
Linux Kernel Mailing List
drivers/acpi: use kasprintf
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
Tony Abernethy
Re: The Atheros story in much fewer words
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate