lkml.org 
[lkml]   [2021]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH Part1 v5 35/38] x86/sev: Register SNP guest request platform device
From
Date
Hi Dov,


On 8/31/21 6:37 AM, Dov Murik wrote:
>> +
>> + if (!platform_device_register(&guest_req_device))
>> + dev_info(&guest_req_device.dev, "secret phys 0x%llx\n", snp_secrets_phys);
>
> Should you return the error code from platform_device_register() in case
> it fails (returns something other than zero)?
>

Yes, I will fix it in next rev. Will return a non-zero on failure to
register the device.

thanks

\
 
 \ /
  Last update: 2021-08-31 18:04    [W:0.125 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site