lkml.org 
[lkml]   [2023]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 7/7] cxl/memdev: Register for and process CPER events
Ira Weiny wrote:
[..]
> > and drop the = NULL above.
>
> Done.

The NULL assignment was more about making it clear that
__free(pci_dev_put) will take no action until the pdev is acquired.
Otherwise, any future refactoring that introduces a 'return' before
@pdev is acquired needs to be careful to assign @pdev to NULL. So, just
include it in the declaration more as a __free() declaration style issue
than a correctness issue.

\
 
 \ /
  Last update: 2023-12-20 00:38    [W:2.733 / U:21.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site