Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933783Ab3GWVjy (ORCPT ); Tue, 23 Jul 2013 17:39:54 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40771 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754713Ab3GWVjx (ORCPT ); Tue, 23 Jul 2013 17:39:53 -0400 Date: Tue, 23 Jul 2013 14:39:52 -0700 From: Greg Kroah-Hartman To: "Raphael S. Carvalho" Cc: William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Andy Shevchenko , Andrew Morton , Lijo Antony , speakup@braille.uwo.ca, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] staging/speakup/kobjects.c: Code improvement. Message-ID: <20130723213952.GA15052@kroah.com> References: <1371866080-13752-1-git-send-email-raphael.scarv@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1371866080-13752-1-git-send-email-raphael.scarv@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1247 Lines: 30 On Fri, Jun 21, 2013 at 10:54:40PM -0300, Raphael S. Carvalho wrote: > 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 608), 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 > --- > drivers/staging/speakup/kobjects.c | 73 +++++++++++++++++++---------------- > 1 files changed, 40 insertions(+), 33 deletions(-) This patch no longer applies to my tree, can you please refresh it against linux-next and resend, keeping Samuel's ack on it? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/