staging: vc04_services: Remove vchiq_pause_internal()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 25 Jun 2019 18:17:04 +0000 (23:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Jun 2019 01:58:47 +0000 (09:58 +0800)
Remove unused function vchiq_pause_internal.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h

index 0dca6e834ffaec534d381b530ac6ddb867efb77e..7f093b2679aedd08cae645869cea114f121ada84 100644 (file)
@@ -2830,29 +2830,6 @@ vchiq_shutdown_internal(struct vchiq_state *state, VCHIQ_INSTANCE_T instance)
        return VCHIQ_SUCCESS;
 }
 
-VCHIQ_STATUS_T
-vchiq_pause_internal(struct vchiq_state *state)
-{
-       VCHIQ_STATUS_T status = VCHIQ_SUCCESS;
-
-       switch (state->conn_state) {
-       case VCHIQ_CONNSTATE_CONNECTED:
-               /* Request a pause */
-               vchiq_set_conn_state(state, VCHIQ_CONNSTATE_PAUSING);
-               request_poll(state, NULL, 0);
-               break;
-       default:
-               vchiq_log_error(vchiq_core_log_level,
-                       "%s in state %s\n",
-                       __func__, conn_state_names[state->conn_state]);
-               status = VCHIQ_ERROR;
-               VCHIQ_STATS_INC(state, error_count);
-               break;
-       }
-
-       return status;
-}
-
 VCHIQ_STATUS_T
 vchiq_resume_internal(struct vchiq_state *state)
 {
index aee2d362e88d2e4506cfecb4ff78ff5094e738d0..b319031145ed35e8d05644be3bf3ac3e020e4fa1 100644 (file)
@@ -518,9 +518,6 @@ vchiq_free_service_internal(struct vchiq_service *service);
 extern VCHIQ_STATUS_T
 vchiq_shutdown_internal(struct vchiq_state *state, VCHIQ_INSTANCE_T instance);
 
-extern VCHIQ_STATUS_T
-vchiq_pause_internal(struct vchiq_state *state);
-
 extern VCHIQ_STATUS_T
 vchiq_resume_internal(struct vchiq_state *state);