lkml.org 
[lkml]   [2017]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/2] xen-tpmfront: Use common error handling code in vtpm_send()
From
Date
>> @@ -108,11 +106,14 @@ static int vtpm_send(struct tpm_chip *chip, u8 *buf, size_t count)
>> if (wait_for_tpm_stat(chip, VTPM_STATUS_IDLE, duration,
>> &priv->read_queue, true) < 0) {
>> /* got a signal or timeout, try to cancel */
>> - vtpm_cancel(chip);
>> - return -ETIME;
>> + goto cancel_vtpm;
>> }
>>
>> return count;
>> +
>> +cancel_vtpm:
>> + vtpm_cancel(chip);
>> + return -ETIME;
>> }
>>
>> static int vtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count)
>> --
>> 2.14.2
>>
>
> NAK

Do you need any more facts to show the influence of the proposed small code reduction?

Regards,
Markus

\
 
 \ /
  Last update: 2017-10-23 15:58    [W:0.090 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site