]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: ccree: fix else placement
authorGilad Ben-Yossef <gilad@benyossef.com>
Tue, 27 Jun 2017 07:27:15 +0000 (10:27 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Jun 2017 14:38:50 +0000 (16:38 +0200)
Fix cases where the else clause was not located correctly after the if
brace.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_buffer_mgr.c
drivers/staging/ccree/ssi_pm.c

index 5c46145a2955e4d3ab0df9c228e5e75ced2c381d..3c74ae3228e14170ed2fecb4ba924e2b3eb85c20 100644 (file)
@@ -852,8 +852,7 @@ static inline int ssi_buffer_mgr_aead_chain_assoc(
        sg_index = current_sg->length;
        if (sg_index > size_of_assoc) { //the first entry in the scatter list contains all the associated data
                mapped_nents++;
-       }
-       else{
+       } else {
                while (sg_index <= size_of_assoc) {
                        current_sg = sg_next(current_sg);
                        //if have reached the end of the sgl, then this is unexpected
index c8c58754a792e0f1a96315d1ebbd65782fcc02a4..ae1f7f0bb715044207628ee0165517dcb40efd5b 100644 (file)
@@ -110,8 +110,7 @@ int ssi_power_mgr_runtime_put_suspend(struct device *dev)
                                (struct ssi_drvdata *)dev_get_drvdata(dev))) {
                pm_runtime_mark_last_busy(dev);
                rc = pm_runtime_put_autosuspend(dev);
-       }
-       else {
+       } else {
                /* Something wrong happens*/
                BUG();
        }