Re: [tpmdd-devel] [PATCH v8 0/8] TPM 2.0 support

From: Thomas Gleixner
Date: Tue Dec 02 2014 - 19:04:08 EST


On Wed, 3 Dec 2014, Peter Hüwe wrote:
> From: Peter Huewe <peterhuewe@xxxxxx>
> Date: Wed, 3 Dec 2014 00:18:52 +0100
> Subject: [PATCH] tpm:tpm_i2c_nuvoton: simpyl return statements

simpyl?

> if !rc evals to false it is 0
> -> we can return rc in both cases

Why assigning rc and returning it when you can return the result of
tpm_chip_register() right away?

Thanks,

tglx