staging: vme: fix loop condition
authorManohar Vanga <manohar.vanga@cern.ch>
Wed, 23 Feb 2011 13:25:28 +0000 (14:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Feb 2011 22:41:29 +0000 (14:41 -0800)
commitda1bbd1d85ca4b68c58986f997f859327fd7f648
treed30dad5890b6fc5f57c71fc8b52f5e1e27aa4749
parent6012795b13cd15b1e2216dc8558461ce99aecc30
staging: vme: fix loop condition

Fix loop condition in vme_register_bridge that results in an infinite
loop in the event that device_register fails.

Signed-off-by: Manohar Vanga <manohar.vanga@cern.ch>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Acked-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vme/vme.c