[PATCH 4/8]drivers:tmp.c Fix warning: variable 'rc' set but not used
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Mon Jun 14 20:49:49 PDT 2010
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20100614/5e0f5cb4/attachment.pgp>
More information about the dri-devel
mailing list