diff options
| author | Yi Yang <[email protected]> | 2024-11-08 08:55:26 +0000 |
|---|---|---|
| committer | Ira Weiny <[email protected]> | 2024-11-13 18:58:37 +0000 |
| commit | b61352101470f8b68c98af674e187cfaa7c43504 (patch) | |
| tree | adee0aaf6588cdb899e25cf35681dbcba81261ae /drivers/usb/cdns3/cdns3-pci-wrap.c | |
| parent | nvdimm: Correct some typos in comments (diff) | |
| download | kernel-b61352101470f8b68c98af674e187cfaa7c43504.tar.gz kernel-b61352101470f8b68c98af674e187cfaa7c43504.zip | |
nvdimm: rectify the illogical code within nd_dax_probe()
When nd_dax is NULL, nd_pfn is consequently NULL as well. Nevertheless,
it is inadvisable to perform pointer arithmetic or address-taking on a
NULL pointer.
Introduce the nd_dax_devinit() function to enhance the code's logic and
improve its readability.
Signed-off-by: Yi Yang <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Ira Weiny <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions
