Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751449AbbLIFRa (ORCPT ); Wed, 9 Dec 2015 00:17:30 -0500 Received: from mail-pf0-f173.google.com ([209.85.192.173]:33481 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054AbbLIFR3 (ORCPT ); Wed, 9 Dec 2015 00:17:29 -0500 Date: Wed, 9 Dec 2015 10:47:18 +0530 From: Sudip Mukherjee To: Saurabh Sengar Cc: w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, samuel.thibault@ens-lyon.org, gregkh@linuxfoundation.org, lexa@cfotr.com, speakup@linux-speakup.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Staging: speakup: varhandlers: cleanup of function spk_get_punc_var Message-ID: <20151209051718.GA4159@sudip-pc> References: <1449493511-14410-1-git-send-email-saurabh.truth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1449493511-14410-1-git-send-email-saurabh.truth@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: 816 Lines: 19 On Mon, Dec 07, 2015 at 06:35:11PM +0530, Saurabh Sengar wrote: > This patch does the following: > * changed the complicated if statements to simple case statements > * in case of E_DEFAULT, no need to return error as ERESTART, > because this is the user asked for. Hence function should return success. > * ret variable is 0 always, hence removed it. > * removed one ternary operator, as it was always returning the status value only, > and hence removed the status variable too That becomes 4 different changes. Please break them into separate patches. regards sudip -- 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/