[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200318223542.GD20941@ziepe.ca>
Date: Wed, 18 Mar 2020 19:35:42 -0300
From: Jason Gunthorpe <jgg@...pe.ca>
To: Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>
Cc: George Wilson <gcwilson@...ux.ibm.com>,
linux-integrity@...r.kernel.org,
Alexey Kardashevskiy <aik@...abs.ru>,
Stefan Berger <stefanb@...ux.ibm.com>,
Nayna Jain <nayna@...ux.vnet.ibm.com>,
linux-kernel@...r.kernel.org, Linh Pham <phaml@...ibm.com>
Subject: Re: [PATCH v2] tpm: ibmvtpm: retry on H_CLOSED in tpm_ibmvtpm_send()
On Wed, Mar 18, 2020 at 10:43:18PM +0200, Jarkko Sakkinen wrote:
> > static const char tpm_ibmvtpm_driver_name[] = "tpm_ibmvtpm";
> >
> > static const struct vio_device_id tpm_ibmvtpm_device_table[] = {
> > @@ -147,6 +149,7 @@ static int tpm_ibmvtpm_send(struct tpm_chip *chip, u8 *buf, size_t count)
> > {
> > struct ibmvtpm_dev *ibmvtpm = dev_get_drvdata(&chip->dev);
> > int rc, sig;
> > + bool retry = true;
>
> Cosmetic: would be nice to have inits when possible in reverse
> Christmas tree order i.e.
>
> struct ibmvtpm_dev *ibmvtpm = dev_get_drvdata(&chip->dev);
> bool retry = true;
> int rc, sig;
>
> It is way more pleasing for the eye when you have to read the source
> code.
I thought only netdev insisted on that :O
Jason
Powered by blists - more mailing lists