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:
1c53e0d
)
mm/zswap.c: remove unneeded initialization to NULL in zswap_entry_find_get()
author
Alexey Klimov
<
[email protected]
>
Sat, 7 Nov 2015 00:29:09 +0000
(16:29 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 7 Nov 2015 01:50:42 +0000
(17:50 -0800)
On the next line entry variable will be re-initialized so no need to init
it with NULL.
Signed-off-by: Alexey Klimov <
[email protected]
>
Cc: Seth Jennings <
[email protected]
>
Cc: Dan Streetman <
[email protected]
>
Cc: Minchan Kim <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/zswap.c
patch
|
blob
|
history
diff --git
a/mm/zswap.c
b/mm/zswap.c
index e54166d3732e8e4bae250a0b06607a42863f42c2..827568959d74ecf314cf8739c8406bddb5a73073 100644
(file)
--- a/
mm/zswap.c
+++ b/
mm/zswap.c
@@
-342,7
+342,7
@@
static void zswap_entry_put(struct zswap_tree *tree,
static struct zswap_entry *zswap_entry_find_get(struct rb_root *root,
pgoff_t offset)
{
- struct zswap_entry *entry
= NULL
;
+ struct zswap_entry *entry;
entry = zswap_rb_search(root, offset);
if (entry)