Skip to content

Commit 36ed27b

Browse files
kkaneshigegregkh
authored andcommitted
pciehp: remove trailing whitespace from pciehp_ctrl.c
Remove trailing whitespaces from pciehp_ctrl.c. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent a073a82 commit 36ed27b

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎drivers/pci/hotplug/pciehp_ctrl.c‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,23 +173,23 @@ u8 pciehp_handle_power_fault(u8 hp_slot, struct controller *ctrl)
173173
return 1;
174174
}
175175

176-
/* The following routines constitute the bulk of the
176+
/* The following routines constitute the bulk of the
177177
hotplug controller logic
178178
*/
179179

180180
static void set_slot_off(struct controller *ctrl, struct slot * pslot)
181181
{
182182
/* turn off slot, turn on Amber LED, turn off Green LED if supported*/
183183
if (POWER_CTRL(ctrl->ctrlcap)) {
184-
if (pslot->hpc_ops->power_off_slot(pslot)) {
184+
if (pslot->hpc_ops->power_off_slot(pslot)) {
185185
err("%s: Issue of Slot Power Off command failed\n",
186186
__FUNCTION__);
187187
return;
188188
}
189189
}
190190

191191
if (PWR_LED(ctrl->ctrlcap))
192-
pslot->hpc_ops->green_led_off(pslot);
192+
pslot->hpc_ops->green_led_off(pslot);
193193

194194
if (ATTN_LED(ctrl->ctrlcap)) {
195195
if (pslot->hpc_ops->set_attention_status(pslot, 1)) {
@@ -231,7 +231,7 @@ static int board_added(struct slot *p_slot)
231231
if (retval)
232232
return retval;
233233
}
234-
234+
235235
if (PWR_LED(ctrl->ctrlcap))
236236
p_slot->hpc_ops->green_led_blink(p_slot);
237237

@@ -548,7 +548,7 @@ int pciehp_enable_slot(struct slot *p_slot)
548548
mutex_unlock(&p_slot->ctrl->crit_sect);
549549
return -ENODEV;
550550
}
551-
if (MRL_SENS(p_slot->ctrl->ctrlcap)) {
551+
if (MRL_SENS(p_slot->ctrl->ctrlcap)) {
552552
rc = p_slot->hpc_ops->get_latch_status(p_slot, &getstatus);
553553
if (rc || getstatus) {
554554
info("%s: latch open on slot(%s)\n", __FUNCTION__,
@@ -557,8 +557,8 @@ int pciehp_enable_slot(struct slot *p_slot)
557557
return -ENODEV;
558558
}
559559
}
560-
561-
if (POWER_CTRL(p_slot->ctrl->ctrlcap)) {
560+
561+
if (POWER_CTRL(p_slot->ctrl->ctrlcap)) {
562562
rc = p_slot->hpc_ops->get_power_status(p_slot, &getstatus);
563563
if (rc || getstatus) {
564564
info("%s: already enabled on slot(%s)\n", __FUNCTION__,
@@ -593,7 +593,7 @@ int pciehp_disable_slot(struct slot *p_slot)
593593
/* Check to see if (latch closed, card present, power on) */
594594
mutex_lock(&p_slot->ctrl->crit_sect);
595595

596-
if (!HP_SUPR_RM(p_slot->ctrl->ctrlcap)) {
596+
if (!HP_SUPR_RM(p_slot->ctrl->ctrlcap)) {
597597
ret = p_slot->hpc_ops->get_adapter_status(p_slot, &getstatus);
598598
if (ret || !getstatus) {
599599
info("%s: no adapter on slot(%s)\n", __FUNCTION__,
@@ -603,7 +603,7 @@ int pciehp_disable_slot(struct slot *p_slot)
603603
}
604604
}
605605

606-
if (MRL_SENS(p_slot->ctrl->ctrlcap)) {
606+
if (MRL_SENS(p_slot->ctrl->ctrlcap)) {
607607
ret = p_slot->hpc_ops->get_latch_status(p_slot, &getstatus);
608608
if (ret || getstatus) {
609609
info("%s: latch open on slot(%s)\n", __FUNCTION__,
@@ -613,7 +613,7 @@ int pciehp_disable_slot(struct slot *p_slot)
613613
}
614614
}
615615

616-
if (POWER_CTRL(p_slot->ctrl->ctrlcap)) {
616+
if (POWER_CTRL(p_slot->ctrl->ctrlcap)) {
617617
ret = p_slot->hpc_ops->get_power_status(p_slot, &getstatus);
618618
if (ret || !getstatus) {
619619
info("%s: already disabled slot(%s)\n", __FUNCTION__,

0 commit comments

Comments
 (0)