Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec29782b authored by Paolo Ciarrocchi's avatar Paolo Ciarrocchi Committed by Bartlomiej Zolnierkiewicz
Browse files

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: default avatarPaolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 4752b5e7
Loading
Loading
Loading
Loading
+40 −38
Original line number Diff line number Diff line
@@ -291,7 +291,6 @@ static int controller_ready(unsigned int drive, unsigned int head)
	return 0;
}

		
static void hd_out(struct hd_i_struct *disk,
		   unsigned int nsect,
		   unsigned int sect,
@@ -633,12 +632,14 @@ repeat:
	if (blk_fs_request(req)) {
		switch (rq_data_dir(req)) {
		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)
				goto repeat;
			break;
		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)
				goto repeat;
			if (wait_DRQ()) {
@@ -800,7 +801,8 @@ Enomem:
	goto out;
}

static int __init parse_hd_setup (char *line) {
static int __init parse_hd_setup(char *line)
{
	int ints[6];

	(void) get_options(line, ARRAY_SIZE(ints), ints);