Commit bc4d6daf authored by Monam Agarwal's avatar Monam Agarwal Committed by Greg Kroah-Hartman

Staging: cxt1e1: Fix no spaces at the start of a line in functions.c

This patch fixes the following checkpatch.pl warning in functions.c
WARNING: please no spaces at the start of a line in
Signed-off-by: default avatarMonam Agarwal <monamagarwal123@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 223eaa37
......@@ -25,7 +25,7 @@
#include "pmcc4.h"
#if defined(CONFIG_SBE_HDLC_V7) || defined(CONFIG_SBE_WAN256T3_HDLC_V7) || \
defined(CONFIG_SBE_HDLC_V7_MODULE) || defined(CONFIG_SBE_WAN256T3_HDLC_V7_MODULE)
defined(CONFIG_SBE_HDLC_V7_MODULE) || defined(CONFIG_SBE_WAN256T3_HDLC_V7_MODULE)
#define _v7_hdlc_ 1
#else
#define _v7_hdlc_ 0
......@@ -109,8 +109,7 @@ watchdog_func (unsigned long arg)
{
struct watchdog *wd = (void *) arg;
if (drvr_state != SBE_DRVR_AVAILABLE)
{
if (drvr_state != SBE_DRVR_AVAILABLE) {
if (cxt1e1_log_level >= LOG_MONITOR)
pr_warning("%s: drvr not available (%x)\n", __func__, drvr_state);
return;
......@@ -140,18 +139,15 @@ OS_uwait (int usec, char *description)
{
int tmp;
if (usec >= 1000)
{
if (usec >= 1000) {
mdelay (usec / 1000);
/* now delay residual */
tmp = (usec / 1000) * 1000; /* round */
tmp = usec - tmp; /* residual */
if (tmp)
{ /* wait on residual */
if (tmp) { /* wait on residual */
udelay (tmp);
}
} else
{
} else {
udelay (usec);
}
}
......@@ -174,8 +170,7 @@ OS_uwait_dummy (void)
void
OS_sem_init (void *sem, int state)
{
switch (state)
{
switch (state) {
case SEM_TAKEN:
sema_init((struct semaphore *) sem, 0);
break;
......@@ -270,8 +265,7 @@ VMETRO_TRIGGER (ci_t *ci, int x)
comet = ci->port[0].cometbase; /* default to COMET # 0 */
switch (x)
{
switch (x) {
default:
case 0:
data = pci_read_32 ((u_int32_t *) &comet->__res24); /* 0x90 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment