Skip to content

Commit e249884

Browse files
Erni Sri Satya Vennelaliuw
authored andcommitted
x86/hyperv: Cosmetic changes for hv_apic.c
Fix issues reported by checkpatch.pl script for hv_apic.c file - Alignment should match open parenthesis - Remove unnecessary parenthesis No functional changes intended. Signed-off-by: Erni Sri Satya Vennela <[email protected]> Reviewed-by: Saurabh Sengar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]> Message-ID: <[email protected]>
1 parent e8f897f commit e249884

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

arch/x86/hyperv/hv_apic.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static bool cpu_is_self(int cpu)
105105
* IPI implementation on Hyper-V.
106106
*/
107107
static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector,
108-
bool exclude_self)
108+
bool exclude_self)
109109
{
110110
struct hv_send_ipi_ex *ipi_arg;
111111
unsigned long flags;
@@ -132,8 +132,8 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector,
132132
if (!cpumask_equal(mask, cpu_present_mask) || exclude_self) {
133133
ipi_arg->vp_set.format = HV_GENERIC_SET_SPARSE_4K;
134134

135-
nr_bank = cpumask_to_vpset_skip(&(ipi_arg->vp_set), mask,
136-
exclude_self ? cpu_is_self : NULL);
135+
nr_bank = cpumask_to_vpset_skip(&ipi_arg->vp_set, mask,
136+
exclude_self ? cpu_is_self : NULL);
137137

138138
/*
139139
* 'nr_bank <= 0' means some CPUs in cpumask can't be
@@ -147,15 +147,15 @@ static bool __send_ipi_mask_ex(const struct cpumask *mask, int vector,
147147
}
148148

149149
status = hv_do_rep_hypercall(HVCALL_SEND_IPI_EX, 0, nr_bank,
150-
ipi_arg, NULL);
150+
ipi_arg, NULL);
151151

152152
ipi_mask_ex_done:
153153
local_irq_restore(flags);
154154
return hv_result_success(status);
155155
}
156156

157157
static bool __send_ipi_mask(const struct cpumask *mask, int vector,
158-
bool exclude_self)
158+
bool exclude_self)
159159
{
160160
int cur_cpu, vcpu, this_cpu = smp_processor_id();
161161
struct hv_send_ipi ipi_arg;
@@ -181,7 +181,7 @@ static bool __send_ipi_mask(const struct cpumask *mask, int vector,
181181
return false;
182182
}
183183

184-
if ((vector < HV_IPI_LOW_VECTOR) || (vector > HV_IPI_HIGH_VECTOR))
184+
if (vector < HV_IPI_LOW_VECTOR || vector > HV_IPI_HIGH_VECTOR)
185185
return false;
186186

187187
/*
@@ -218,7 +218,7 @@ static bool __send_ipi_mask(const struct cpumask *mask, int vector,
218218
}
219219

220220
status = hv_do_fast_hypercall16(HVCALL_SEND_IPI, ipi_arg.vector,
221-
ipi_arg.cpu_mask);
221+
ipi_arg.cpu_mask);
222222
return hv_result_success(status);
223223

224224
do_ex_hypercall:
@@ -241,7 +241,7 @@ static bool __send_ipi_one(int cpu, int vector)
241241
return false;
242242
}
243243

244-
if ((vector < HV_IPI_LOW_VECTOR) || (vector > HV_IPI_HIGH_VECTOR))
244+
if (vector < HV_IPI_LOW_VECTOR || vector > HV_IPI_HIGH_VECTOR)
245245
return false;
246246

247247
if (vp >= 64)

0 commit comments

Comments
 (0)