Skip to content

Commit

Permalink
MIPS: jz4740: remove unnecessary null test before debugfs_remove
Browse files Browse the repository at this point in the history
Fix checkpatch warning:
WARNING: debugfs_remove(NULL) is safe this check is probably not required

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7225/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Fabian Frederick authored and Ralf Baechle committed Aug 1, 2014
1 parent 2d6a554 commit c6b7b9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/mips/jz4740/clock-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c6b7b9f

Please sign in to comment.