nfs: Remove redundant NULL check upon kfree()
Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Родитель
9b00c64318
Коммит
5d7ca35a18
|
@ -2273,8 +2273,7 @@ static int nfs4_get_referral(struct inode *dir, const struct qstr *name, struct
|
|||
out:
|
||||
if (page)
|
||||
__free_page(page);
|
||||
if (locations)
|
||||
kfree(locations);
|
||||
kfree(locations);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче