Tag: 0c8f86322f4debca6dc899603e56397a6ae7c2dc

dm snapshot: remove unnecessary NULL checks before vfree() calls

Author: Markus Elfring <elfring@users.sourceforge.net> The vfree() function performs input parameter validation. Thus the NULL pointer test around vfree() calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Mike Snitzer — drivers/md/dm-snap-persistent.c | 14 ++++———- 1 file changed, 4 insertions(+), 10 deletions(-)   diff –git a/drivers/md/dm-snap-persistent.c b/drivers/md/dm-snap-persistent.c index …

Continue reading