projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16c9914
)
nfs: Remove bogus assignment
author
Jan Kara
<
[email protected]
>
Tue, 21 Oct 2014 11:32:10 +0000
(13:32 +0200)
committer
Trond Myklebust
<
[email protected]
>
Wed, 12 Nov 2014 19:22:53 +0000
(14:22 -0500)
Commit
3a6fd1f004fc
(pnfs/blocklayout: remove read-modify-write handling
in bl_write_pagelist) introduced a bogus assignment pg_index = pg_index
in variable initialization. AFAICS it's just a typo so remove it.
Spotted by Coverity (id
1248711
).
CC: Christoph Hellwig <
[email protected]
>
Signed-off-by: Jan Kara <
[email protected]
>
Reviewed-by: Christoph Hellwig <
[email protected]
>
Signed-off-by: Trond Myklebust <
[email protected]
>
fs/nfs/blocklayout/blocklayout.c
patch
|
blob
|
history
diff --git
a/fs/nfs/blocklayout/blocklayout.c
b/fs/nfs/blocklayout/blocklayout.c
index 5228f201d3d53ed93966bc99e682077b9c78f107..4f46f7a05289ba957e219df793b68dfa2f037bb5 100644
(file)
--- a/
fs/nfs/blocklayout/blocklayout.c
+++ b/
fs/nfs/blocklayout/blocklayout.c
@@
-378,7
+378,7
@@
bl_write_pagelist(struct nfs_pgio_header *header, int sync)
loff_t offset = header->args.offset;
size_t count = header->args.count;
struct page **pages = header->args.pages;
- int pg_index =
pg_index =
header->args.pgbase >> PAGE_CACHE_SHIFT;
+ int pg_index = header->args.pgbase >> PAGE_CACHE_SHIFT;
unsigned int pg_len;
struct blk_plug plug;
int i;