OSDN Git Service

esoc: remove duplicate const specifier
authorNathan Chancellor <natechancellor@gmail.com>
Thu, 26 Apr 2018 00:28:08 +0000 (17:28 -0700)
committer0ranko0P <ranko0p@outlook.com>
Wed, 4 Dec 2019 17:17:33 +0000 (01:17 +0800)
Fixes the following GCC 7.3.0 warnings: duplicate â€˜const’ declaration
specifier [-Wduplicate-decl-specifier

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Change-Id: I412d7459d1781f0dd63a164ec5a73091bba62f0a

drivers/esoc/esoc-mdm-drv.c
drivers/esoc/esoc.h
drivers/esoc/esoc_dev.c

index 9c2c68d..61fb787 100644 (file)
@@ -48,7 +48,7 @@ static int esoc_msm_restart_handler(struct notifier_block *nb,
        struct mdm_drv *mdm_drv = container_of(nb, struct mdm_drv,
                                        esoc_restart);
        struct esoc_clink *esoc_clink = mdm_drv->esoc_clink;
-       const struct esoc_clink_ops const *clink_ops = esoc_clink->clink_ops;
+       const struct esoc_clink_ops *clink_ops = esoc_clink->clink_ops;
        if (action == SYS_RESTART) {
                if (mdm_dbg_stall_notify(ESOC_PRIMARY_REBOOT))
                        return NOTIFY_OK;
@@ -110,7 +110,7 @@ static void mdm_crash_shutdown(const struct subsys_desc *mdm_subsys)
                                        container_of(mdm_subsys,
                                                        struct esoc_clink,
                                                                subsys);
-       const struct esoc_clink_ops const *clink_ops = esoc_clink->clink_ops;
+       const struct esoc_clink_ops *clink_ops = esoc_clink->clink_ops;
        if (mdm_dbg_stall_notify(ESOC_PRIMARY_CRASH))
                return;
        clink_ops->notify(ESOC_PRIMARY_CRASH, esoc_clink);
@@ -123,7 +123,7 @@ static int mdm_subsys_shutdown(const struct subsys_desc *crashed_subsys,
        struct esoc_clink *esoc_clink =
         container_of(crashed_subsys, struct esoc_clink, subsys);
        struct mdm_drv *mdm_drv = esoc_get_drv_data(esoc_clink);
-       const struct esoc_clink_ops const *clink_ops = esoc_clink->clink_ops;
+       const struct esoc_clink_ops *clink_ops = esoc_clink->clink_ops;
 
        if (mdm_drv->mode == CRASH || mdm_drv->mode == PEER_CRASH) {
                if (mdm_dbg_stall_cmd(ESOC_PREPARE_DEBUG))
@@ -168,7 +168,7 @@ static int mdm_subsys_powerup(const struct subsys_desc *crashed_subsys)
                                container_of(crashed_subsys, struct esoc_clink,
                                                                subsys);
        struct mdm_drv *mdm_drv = esoc_get_drv_data(esoc_clink);
-       const struct esoc_clink_ops const *clink_ops = esoc_clink->clink_ops;
+       const struct esoc_clink_ops *clink_ops = esoc_clink->clink_ops;
        int timeout = INT_MAX;
 
        if (!esoc_clink->auto_boot && !esoc_req_eng_enabled(esoc_clink)) {
@@ -220,7 +220,7 @@ static int mdm_subsys_ramdumps(int want_dumps,
        struct esoc_clink *esoc_clink =
                                container_of(crashed_subsys, struct esoc_clink,
                                                                subsys);
-       const struct esoc_clink_ops const *clink_ops = esoc_clink->clink_ops;
+       const struct esoc_clink_ops *clink_ops = esoc_clink->clink_ops;
 
        if (want_dumps) {
                ret = clink_ops->cmd_exe(ESOC_EXE_DEBUG, esoc_clink);
index ee54908..3b2955f 100644 (file)
@@ -76,7 +76,7 @@ struct esoc_clink {
        struct platform_device *pdev;
        unsigned int id;
        struct module *owner;
-       const struct esoc_clink_ops const *clink_ops;
+       const struct esoc_clink_ops *clink_ops;
        struct esoc_eng *req_eng;
        struct esoc_eng *cmd_eng;
        spinlock_t notify_lock;
index a1e7a52..558559c 100644 (file)
@@ -179,7 +179,7 @@ static long esoc_dev_ioctl(struct file *file, unsigned int cmd,
        struct esoc_uhandle *uhandle = file->private_data;
        struct esoc_udev *esoc_udev = uhandle->esoc_udev;
        struct esoc_clink *esoc_clink = uhandle->esoc_clink;
-       const struct esoc_clink_ops const *clink_ops = esoc_clink->clink_ops;
+       const struct esoc_clink_ops *clink_ops = esoc_clink->clink_ops;
        void __user *uarg = (void __user *)arg;
 
        switch (cmd) {