Skip to content

Commit e3da4c4

Browse files
committed
ata: pata_parport: Fix code style issues
Fix indentation and other code style issues in the comm.c file. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202309150646.n3iBvbPj-lkp@intel.com/ Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
1 parent 737dd81 commit e3da4c4

File tree

1 file changed

+4
-5
lines changed
  • drivers/ata/pata_parport

1 file changed

+4
-5
lines changed

drivers/ata/pata_parport/comm.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static int comm_read_regr(struct pi_adapter *pi, int cont, int regr)
3737
{
3838
int l, h, r;
3939

40-
r = regr + cont_map[cont];
40+
r = regr + cont_map[cont];
4141

4242
switch (pi->mode) {
4343
case 0:
@@ -90,7 +90,6 @@ static void comm_connect(struct pi_adapter *pi)
9090
}
9191

9292
static void comm_disconnect(struct pi_adapter *pi)
93-
9493
{
9594
w2(0); w2(0); w2(0); w2(4);
9695
w0(pi->saved_r0);
@@ -172,12 +171,12 @@ static void comm_write_block(struct pi_adapter *pi, char *buf, int count)
172171
w4l(swab16(((u16 *)buf)[2 * k]) |
173172
swab16(((u16 *)buf)[2 * k + 1]) << 16);
174173
break;
175-
}
174+
}
176175
}
177176

178177
static void comm_log_adapter(struct pi_adapter *pi)
179-
180-
{ char *mode_string[5] = { "4-bit", "8-bit", "EPP-8", "EPP-16", "EPP-32" };
178+
{
179+
char *mode_string[5] = { "4-bit", "8-bit", "EPP-8", "EPP-16", "EPP-32" };
181180

182181
dev_info(&pi->dev,
183182
"DataStor Commuter at 0x%x, mode %d (%s), delay %d\n",

0 commit comments

Comments
 (0)