IDE: Coding Style fixes to drivers/ide/legacy/hd.c
Fix a lot of errors and warnings. Compile tested. [bart: some fixes, md5sum checked] Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
4752b5e776
commit
ec29782ba3
|
@ -291,7 +291,6 @@ static int controller_ready(unsigned int drive, unsigned int head)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void hd_out(struct hd_i_struct *disk,
|
static void hd_out(struct hd_i_struct *disk,
|
||||||
unsigned int nsect,
|
unsigned int nsect,
|
||||||
unsigned int sect,
|
unsigned int sect,
|
||||||
|
@ -633,12 +632,14 @@ repeat:
|
||||||
if (blk_fs_request(req)) {
|
if (blk_fs_request(req)) {
|
||||||
switch (rq_data_dir(req)) {
|
switch (rq_data_dir(req)) {
|
||||||
case READ:
|
case READ:
|
||||||
hd_out(disk,nsect,sec,head,cyl,WIN_READ,&read_intr);
|
hd_out(disk, nsect, sec, head, cyl, WIN_READ,
|
||||||
|
&read_intr);
|
||||||
if (reset)
|
if (reset)
|
||||||
goto repeat;
|
goto repeat;
|
||||||
break;
|
break;
|
||||||
case WRITE:
|
case WRITE:
|
||||||
hd_out(disk,nsect,sec,head,cyl,WIN_WRITE,&write_intr);
|
hd_out(disk, nsect, sec, head, cyl, WIN_WRITE,
|
||||||
|
&write_intr);
|
||||||
if (reset)
|
if (reset)
|
||||||
goto repeat;
|
goto repeat;
|
||||||
if (wait_DRQ()) {
|
if (wait_DRQ()) {
|
||||||
|
@ -800,7 +801,8 @@ Enomem:
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __init parse_hd_setup (char *line) {
|
static int __init parse_hd_setup(char *line)
|
||||||
|
{
|
||||||
int ints[6];
|
int ints[6];
|
||||||
|
|
||||||
(void) get_options(line, ARRAY_SIZE(ints), ints);
|
(void) get_options(line, ARRAY_SIZE(ints), ints);
|
||||||
|
|
Reference in New Issue