staging: speakup: cleanup spk_var_header_by_name()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 9 May 2013 18:31:59 +0000 (21:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 May 2013 22:02:29 +0000 (18:02 -0400)
commit65545eaea9a3af263061e849e3af280b015bc938
treeb05f03f3b17e7444ca8c0326a2ca527af3bceb17
parentd33bce313cf1a8fbfcd6538fa658bb61840a96ae
staging: speakup: cleanup spk_var_header_by_name()

There is a confusing while loop here and I have re-written it in
canonical for loop format.  Also I reversed the NULL check on "name" and
pulled everything in one tab stop.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/varhandlers.c