Details
-
Task
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
The common free'ing macros already check for NULL, so we don't need to explicitly check this beforehand.
@@
expression E;
@@
- if (E != NULL)
(
OBD_FREE_PTR(E);
|
OBD_FREE(E, ...);
|
LIBCFS_FREE(E, ...);
|
CFS_FREE_PTR(E);
|
CFS_FREE_PTR_ARRAY(E, ...);
)
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/60001/
Subject:
LU-18141obdclass: don't check for NULL before free'ing [2]Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 25f894b17b44c61bc14009877ccb2336b7a4b88d