zram: cosmetic zram_bvec_write() cleanup
authorSergey Senozhatsky <[email protected]>
Thu, 25 Jun 2015 22:00:27 +0000 (15:00 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Jun 2015 00:00:36 +0000 (17:00 -0700)
commit17162f41f04a3ba5a6b887a8e8e7f78159fa4a70
tree57462ac2bba440e78effd88ec27363f1af7ee4b6
parent6566d1a32bf725a4fa9119f16270505451ad01ac
zram: cosmetic zram_bvec_write() cleanup

`bool locked' local variable tells us if we should perform
zcomp_strm_release() or not (jumped to `out' label before
zcomp_strm_find() occurred), which is equivalent to `zstrm' being or not
being NULL.  remove `locked' and check `zstrm' instead.

Signed-off-by: Sergey Senozhatsky <[email protected]>
Acked-by: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/block/zram/zram_drv.c