Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1630848 > unrolled thread
| Started by | Fabian Frederick <fabf@skynet.be> |
|---|---|
| First post | 2017-04-25 20:20 +0200 |
| Last post | 2017-04-25 20:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 1/1 linux-next] nfs: kmap can't fail Fabian Frederick <fabf@skynet.be> - 2017-04-25 20:20 +0200
| From | Fabian Frederick <fabf@skynet.be> |
|---|---|
| Date | 2017-04-25 20:20 +0200 |
| Subject | [PATCH 1/1 linux-next] nfs: kmap can't fail |
| Message-ID | <tAdea-88w-7@gated-at.bofh.it> |
Remove NULL test on kmap() Signed-off-by: Fabian Frederick <fabf@skynet.be> --- fs/nfs/dir.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 3a188cb..f89e54c 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -179,8 +179,6 @@ struct nfs_cache_array *nfs_readdir_get_array(struct page *page) if (page == NULL) return ERR_PTR(-EIO); ptr = kmap(page); - if (ptr == NULL) - return ERR_PTR(-ENOMEM); return ptr; } -- 2.9.3
Back to top | Article view | linux.kernel
csiph-web