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

Commit 5eb82498 authored by Wim Van Sebroeck's avatar Wim Van Sebroeck
Browse files

[WATCHDOG] Coding style - Indentation - part 1



This brings the watchdog drivers into line with coding style.
This patch takes cares of the indentation as described in chapter 1:
  The preferred way to ease multiple indentation levels in a switch
  statement is to align the "switch" and its subordinate "case"
  labels in the same column instead of "double-indenting" the "case"
  labels.

Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 0d7b1014
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -196,7 +196,6 @@ static long sc1200wdt_ioctl(struct file *file, unsigned int cmd,
	};
	};


	switch (cmd) {
	switch (cmd) {

	case WDIOC_GETSUPPORT:
	case WDIOC_GETSUPPORT:
		if (copy_to_user(argp, &ident, sizeof ident))
		if (copy_to_user(argp, &ident, sizeof ident))
			return -EFAULT;
			return -EFAULT;
+1 −2
Original line number Original line Diff line number Diff line
@@ -290,8 +290,7 @@ static long fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
		.identity = "SC520",
		.identity = "SC520",
	};
	};


	switch (cmd)
	switch (cmd) {
	{
	default:
	default:
		return -ENOTTY;
		return -ENOTTY;
	case WDIOC_GETSUPPORT:
	case WDIOC_GETSUPPORT:
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+64 −64

File changed.

Contains only whitespace changes.

+52 −52

File changed.

Contains only whitespace changes.

Loading