OSDN Git Service

staging: comedi: dt282x: condition with no effect - if identical to else
authorNicholas Mc Guire <hofrat@osadl.org>
Wed, 4 Feb 2015 17:02:33 +0000 (12:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2015 09:06:49 +0000 (17:06 +0800)
commit369ba5b8310b401bd04d73d39f57d50a06ef8c09
tree1e3e436780871876236c1f86b5fa5d1f192dc2a1
parentaedd2e80c9409084b68b1c3a5a4e25ddc212d64a
staging: comedi: dt282x: condition with no effect - if identical to else

The if and the else branch code are identical - so the condition has no
effect on the effective code - this patch removes the condition and the
duplicated code.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt282x.c