dm integrity: don't check null pointer before kvfree and vfree
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 29 Apr 2019 12:57:17 +0000 (14:57 +0200)
committerMike Snitzer <snitzer@redhat.com>
Tue, 7 May 2019 20:05:08 +0000 (16:05 -0400)
commit97abfde17ae011525755f50242ed447ecebdbab5
treecf9c961a41b4e4c8041185b143e4ca9a4cf7900d
parent30bba430ddf737978e40561198693ba91386dac1
dm integrity: don't check null pointer before kvfree and vfree

The functions kfree, vfree and kvfree do nothing if we pass a NULL
pointer to them.  So we don't need to test the pointer for NULL.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-integrity.c