[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C16F9FC.2080905@gmail.com>
Date: Mon, 14 Jun 2010 20:56:44 -0700
From: "Justin P. Mattock" <justinmattock@...il.com>
To: Valdis.Kletnieks@...edu
CC: linux-kernel@...r.kernel.org, reiserfs-devel@...r.kernel.org,
linux-bluetooth@...r.kernel.org, clemens@...isch.de,
debora@...ux.vnet.ibm.com, dri-devel@...ts.freedesktop.org,
linux-i2c@...r.kernel.org, linux1394-devel@...ts.sourceforge.net,
linux-media@...r.kernel.org
Subject: Re: [PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' set but not
used
On 06/14/2010 08:49 PM, Valdis.Kletnieks@...edu wrote:
> On Mon, 14 Jun 2010 19:12:31 PDT, "Justin P. Mattock" said:
>
>> what I tried was this:
>>
>> if (!rc)
>> printk("test........"\n")
>>
>> and everything looked good,
>> but as a soon as I changed
>>
>> rc = transmit_cmd(chip,&tpm_cmd, TPM_INTERNAL_RESULT_SIZE,
>> "attempting to determine the timeouts");
>>
>> to this:
>>
>> rc = transmit_cmd(chip,&tpm_cmd, TPM_INTERNAL_RESULT_SIZE);
>>
>> if (!rc)
>> printk("attempting to determine the timeouts\n");
>
> *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. So I kind of just scrambled with this one.
Justin P. Mattock
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists