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:
2d6a554
)
MIPS: jz4740: remove unnecessary null test before debugfs_remove
author
Fabian Frederick
<
[email protected]
>
Sun, 29 Jun 2014 07:24:23 +0000
(09:24 +0200)
committer
Ralf Baechle
<
[email protected]
>
Fri, 1 Aug 2014 22:06:47 +0000
(
00:06
+0200)
Fix checkpatch warning:
WARNING: debugfs_remove(NULL) is safe this check is probably not required
Signed-off-by: Fabian Frederick <
[email protected]
>
Acked-by: Lars-Peter Clausen <
[email protected]
>
Cc: Ralf Baechle <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/7225/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/jz4740/clock-debugfs.c
patch
|
blob
|
history
diff --git
a/arch/mips/jz4740/clock-debugfs.c
b/arch/mips/jz4740/clock-debugfs.c
index a8acdeff267ea87dd48c4097948c570823683d38..325422d0d453bdadab0fe5577417e6d3733831a7 100644
(file)
--- a/
arch/mips/jz4740/clock-debugfs.c
+++ b/
arch/mips/jz4740/clock-debugfs.c
@@
-87,8
+87,7
@@
void jz4740_clock_debugfs_add_clk(struct clk *clk)
/* TODO: Locking */
void jz4740_clock_debugfs_update_parent(struct clk *clk)
{
- if (clk->debugfs_parent_entry)
- debugfs_remove(clk->debugfs_parent_entry);
+ debugfs_remove(clk->debugfs_parent_entry);
if (clk->parent) {
char parent_path[100];