Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vchiq_core: cleanup lines that end with '(' or '['

Fix lines that end with '(' or '['.

Reported by checkpatch.pl

Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
Link: https://lore.kernel.org/r/20211024212524.370078-8-gascoar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gaston Gonzalez and committed by
Greg Kroah-Hartman
6ab92ea6 9393b3bb

+10 -20
+10 -20
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
··· 699 699 return NULL; 700 700 } 701 701 702 - slot_index = local->slot_queue[ 703 - SLOT_QUEUE_INDEX_FROM_POS_MASKED(tx_pos)]; 702 + slot_index = local->slot_queue[SLOT_QUEUE_INDEX_FROM_POS_MASKED(tx_pos)]; 704 703 state->tx_data = 705 704 (char *)SLOT_DATA_FROM_INDEX(state, slot_index); 706 705 } ··· 853 854 } 854 855 855 856 static ssize_t 856 - memcpy_copy_callback( 857 - void *context, void *dest, 858 - size_t offset, size_t maxsize) 857 + memcpy_copy_callback(void *context, void *dest, size_t offset, size_t maxsize) 859 858 { 860 859 memcpy(dest + offset, context + offset, maxsize); 861 860 return maxsize; 862 861 } 863 862 864 863 static ssize_t 865 - copy_message_data( 866 - ssize_t (*copy_callback)(void *context, void *dest, 867 - size_t offset, size_t maxsize), 864 + copy_message_data(ssize_t (*copy_callback)(void *context, void *dest, size_t offset, 865 + size_t maxsize), 868 866 void *context, 869 867 void *dest, 870 868 size_t size) ··· 942 946 * Ensure this service doesn't use more than its quota of 943 947 * messages or slots 944 948 */ 945 - tx_end_index = SLOT_QUEUE_INDEX_FROM_POS( 946 - state->local_tx_pos + stride - 1); 949 + tx_end_index = SLOT_QUEUE_INDEX_FROM_POS(state->local_tx_pos + stride - 1); 947 950 948 951 /* 949 952 * Ensure data messages don't use more than their quota of ··· 954 959 spin_unlock(&quota_spinlock); 955 960 mutex_unlock(&state->slot_mutex); 956 961 957 - if (wait_for_completion_interruptible( 958 - &state->data_quota_event)) 962 + if (wait_for_completion_interruptible(&state->data_quota_event)) 959 963 return VCHIQ_RETRY; 960 964 961 965 mutex_lock(&state->slot_mutex); 962 966 spin_lock(&quota_spinlock); 963 - tx_end_index = SLOT_QUEUE_INDEX_FROM_POS( 964 - state->local_tx_pos + stride - 1); 967 + tx_end_index = SLOT_QUEUE_INDEX_FROM_POS(state->local_tx_pos + stride - 1); 965 968 if ((tx_end_index == state->previous_data_index) || 966 969 (state->data_use_count < state->data_quota)) { 967 970 /* Pass the signal on to other waiters */ ··· 978 985 quota->message_use_count, quota->slot_use_count); 979 986 VCHIQ_SERVICE_STATS_INC(service, quota_stalls); 980 987 mutex_unlock(&state->slot_mutex); 981 - if (wait_for_completion_interruptible( 982 - &quota->quota_event)) 988 + if (wait_for_completion_interruptible(&quota->quota_event)) 983 989 return VCHIQ_RETRY; 984 990 if (service->closing) 985 991 return VCHIQ_ERROR; ··· 990 998 return VCHIQ_ERROR; 991 999 } 992 1000 spin_lock(&quota_spinlock); 993 - tx_end_index = SLOT_QUEUE_INDEX_FROM_POS( 994 - state->local_tx_pos + stride - 1); 1001 + tx_end_index = SLOT_QUEUE_INDEX_FROM_POS(state->local_tx_pos + stride - 1); 995 1002 } 996 1003 997 1004 spin_unlock(&quota_spinlock); ··· 3080 3089 VCHIQ_SERVICE_STATS_INC(service, bulk_stalls); 3081 3090 do { 3082 3091 mutex_unlock(&service->bulk_mutex); 3083 - if (wait_for_completion_interruptible( 3084 - &service->bulk_remove_event)) { 3092 + if (wait_for_completion_interruptible(&service->bulk_remove_event)) { 3085 3093 status = VCHIQ_RETRY; 3086 3094 goto error_exit; 3087 3095 }