f2fs: remove unnecessary goto statement
authorTiezhu Yang <kernelpatch@126.com>
Mon, 27 Jun 2016 23:27:59 +0000 (07:27 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 8 Jul 2016 17:33:27 +0000 (10:33 -0700)
commita0995af69554cecd55c8d2b8c4e4418b84737fd0
tree8de196fe9a2ed778d4792a4ec3430f0d8ee0c604
parent64058be9c8e3579d7055e0b01d2bd9b294db3998
f2fs: remove unnecessary goto statement

When base_addr is NULL, there is no need to call kzfree,
it should return -ENOMEM directly. Additionally, it is
better to initialize variable 'error' with 0.

Signed-off-by: Tiezhu Yang <kernelpatch@126.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/xattr.c