]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm bufio: return NULL to improve code clarity
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 24 Nov 2015 00:11:32 +0000 (19:11 -0500)
committerMike Snitzer <snitzer@redhat.com>
Thu, 10 Dec 2015 15:38:57 +0000 (10:38 -0500)
commitf98c8f797021e78ba27143ecd39c51995c47aa8b
tree790bba6c2e7acae814300fe5cae09fa01e3d9080
parent313c9b97361fca3a606fc74de86bee6dc7988bca
dm bufio: return NULL to improve code clarity

A small code cleanup in new_read() - return NULL instead of b (although
b is NULL at this point).  This function is not returning pointer to the
buffer, it is returning a pointer to the bufffer's data, thus it makes
no sense to return the variable b.

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