From: Raphael S.Carvalho Date: Mon, 2 Sep 2013 22:20:18 +0000 (-0300) Subject: staging/speakup/kobjects.c: Code improvement. X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~706 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b71600bb4bc8591c9bc4234cc12b51d521444b1c;p=pandora-kernel.git staging/speakup/kobjects.c: Code improvement. Well, there is no need to use strcmp since we can make a test of similar semantic by using the var_id field of param. I moved the test into the VAR_NUM:VAR_TIME case since VAR_STRING will never be "voice". spk_xlate isn't used anymore (in line 628), then there is no difference between using cp and buf in VAR_STRING case. Besides, buf is a const char and those changes remove one uneeded line. I created the function spk_reset_default_value because it clarifies the code and allows code reusing. Signed-off-by: Raphael S.Carvalho Acked-by: Samuel Thibault Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed