Staging: bcm: Remove unneeded do while loop in InterfaceRDM.
authorKevin McKinney <klmckinney1@gmail.com>
Sat, 13 Oct 2012 03:49:35 +0000 (23:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Oct 2012 20:42:23 +0000 (13:42 -0700)
commit7878626e14cb30df9bc1c9f38293bfa8a887e806
treef8768364c18d1f608188320a6118199ffb4edac4
parentf637035c680b67d15bddfc293ddee3214c23e2e1
Staging: bcm: Remove unneeded do while loop in InterfaceRDM.

This patch removes an unneeded do while loop which
sends a control message to bcm usb device. In this case,
the loop executes once because usRetries is
initialized to zero. After the first iteration
this variable will be 1. Therefore, the statement:
"usRetries < MAX_RDM_WRM_RETIRES" will evaluate to
false causing the do while statement to execute
once because MAX_RDM_WRM_RETIRES is equal to 1.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/InterfaceMisc.c