remoteproc: fix checkpatch errors in remoteproc code
authorSuman Anna <s-anna@ti.com>
Sun, 30 Jun 2013 08:33:05 +0000 (11:33 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Sun, 30 Jun 2013 08:33:05 +0000 (11:33 +0300)
This patch fixes relevant checkpatch errors and warnings
in the remoteproc source files.

Signed-off-by: Suman Anna <s-anna@ti.com>
[drop 80-char-lines checkpatch fixes and update commit log accordingly]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_debugfs.c
drivers/remoteproc/remoteproc_internal.h

index 157a573..9d30809 100644 (file)
@@ -248,6 +248,5 @@ void __init rproc_init_debugfs(void)
 
 void __exit rproc_exit_debugfs(void)
 {
-       if (rproc_dbg)
-               debugfs_remove(rproc_dbg);
+       debugfs_remove(rproc_dbg);
 }
index 157e762..70701a5 100644 (file)
@@ -107,12 +107,12 @@ struct resource_table *rproc_find_rsc_table(struct rproc *rproc,
 
 static inline
 struct resource_table *rproc_find_loaded_rsc_table(struct rproc *rproc,
-                                const struct firmware *fw)
+                                               const struct firmware *fw)
 {
        if (rproc->fw_ops->find_loaded_rsc_table)
                return rproc->fw_ops->find_loaded_rsc_table(rproc, fw);
 
-        return NULL;
+       return NULL;
 }
 
 extern const struct rproc_fw_ops rproc_elf_fw_ops;