From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755143Ab0FOJlQ (ORCPT ); Tue, 15 Jun 2010 05:41:16 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:63253 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752087Ab0FOJlO (ORCPT ); Tue, 15 Jun 2010 05:41:14 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=iITSXi7CZVGufMbZSHmrJjacwCwG8qRA78PpaZGBIUDk+M5mGiqX7RYiDJZ4q5fqDs AMrenjLy1UEybdvJLmLUSogk8ZyOQGmAymQCsyzSBcOmDp0MF1oIaPql5eFjNYaxomF6 wvrScDhxEEWwS4IOLDF5vtfmJruv2qIc26YwU= Message-ID: <4C174AC9.3010909@gmail.com> Date: Tue, 15 Jun 2010 02:41:29 -0700 From: "Justin P. Mattock" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091114 Lightning/1.0pre Thunderbird/3.0b4 MIME-Version: 1.0 To: Jean Delvare CC: Peter Stuge , Valdis.Kletnieks@vt.edu, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, reiserfs-devel@vger.kernel.org, linux-bluetooth@vger.kernel.org, debora@linux.vnet.ibm.com, linux-i2c@vger.kernel.org, linux1394-devel@lists.sourceforge.net, linux-media@vger.kernel.org Subject: Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' set but not used References: <1276547208-26569-1-git-send-email-justinmattock@gmail.com> <1276547208-26569-5-git-send-email-justinmattock@gmail.com> <21331.1276560832@localhost> <4C16E18F.9050901@gmail.com> <9275.1276573789@localhost> <4C16F9FC.2080905@gmail.com> <20100615052944.7746.qmail@stuge.se> <20100615111902.373ac06d@hyperion.delvare> In-Reply-To: <20100615111902.373ac06d@hyperion.delvare> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/15/2010 02:19 AM, Jean Delvare wrote: > On Tue, 15 Jun 2010 07:29:44 +0200, Peter Stuge wrote: >> Justin P. Mattock wrote: >>>> *baffled* Why did you think that would work? transmit_cmd()s signature >>>> has 4 parameters. >>> >>> I have no manual in front of me. Did a quick google, but came up with >>> (no hits) info on what that function does. grep showed too many entries >>> to really see why/what this is. > > Justin, I think you're on the wrong track here. You seem to be in a > hurry to fix all these warnings generated by gcc 4.6. There is no hurry > at all. Most warnings are false positives, and actual bugs may take > some thinking and knowledge. So rushing is not needed and not > desirable. Going too fast, you might even introduce new bugs, or > prevent old bugs from being properly fixed. > > Warnings are a chance to make the code better. The goal is not to fix > them quickly, but to fix them properly. If this is not your intent, > then please stop immediately and let others deal with these warnings. > If you want to help, this is appreciated, but what we need it quality, > not quantity. > your right.. I do have this "must get it fixed now, or else cut your head of mentality".. causing me to rush through things.. who knows why I do this..(I dont know why I do this honestly) >> Check out the tool cscope. (Or kscope, if you prefer a GUI.) > > Or just LXR online if you don't want to install anything: > > http://lxr.linux.no/linux > http://lxr.linux.no/#linux+v2.6.34/drivers/char/tpm/tpm.c#L451 > At this point though gentlemen/ladies I'm pretty much crapped out now!! so any answer is going to be skewed. but rushing through things is not good. Justin P. Mattock