summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/comedi.h
diff options
context:
space:
mode:
authorKinka Huang <kinkabrain@gmail.com>2014-07-15 23:11:02 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-15 19:59:16 -0700
commitcb3aadaec89109edb60d4829ce82e50b27cb4ce6 (patch)
treee5c19050f6b24be96f30fe1eca3bf4a1cfec192a /drivers/staging/comedi/comedi.h
parentf24937db608b02cf5e27e22803351e0ed707bb7c (diff)
downloadlinux-cb3aadaec89109edb60d4829ce82e50b27cb4ce6.tar.gz
linux-cb3aadaec89109edb60d4829ce82e50b27cb4ce6.tar.bz2
linux-cb3aadaec89109edb60d4829ce82e50b27cb4ce6.zip
staging: comedi: removing not useful `else` after return
Signed-off-by: Kinka Huang <kinkabrain@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi.h')
-rw-r--r--drivers/staging/comedi/comedi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h
index dbaeba7469ac..552a5e2a1077 100644
--- a/drivers/staging/comedi/comedi.h
+++ b/drivers/staging/comedi/comedi.h
@@ -555,16 +555,16 @@ static inline unsigned NI_USUAL_PFI_SELECT(unsigned pfi_channel)
{
if (pfi_channel < 10)
return 0x1 + pfi_channel;
- else
- return 0xb + pfi_channel;
+
+ return 0xb + pfi_channel;
}
static inline unsigned NI_USUAL_RTSI_SELECT(unsigned rtsi_channel)
{
if (rtsi_channel < 7)
return 0xb + rtsi_channel;
- else
- return 0x1b;
+
+ return 0x1b;
}
/* mode bits for NI general-purpose counters, set with