From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id F228A1A04D3 for ; Fri, 2 Oct 2015 22:44:53 +1000 (AEST) Subject: Re: [PATCH v5 02/34] cxlflash: Replace magic numbers with literals To: "Matthew R. Ochs" , linux-scsi@vger.kernel.org, James Bottomley , "Nicholas A. Bellinger" , Brian King , Ian Munsie , Daniel Axtens , Andrew Donnellan , David Laight References: <1443714773-9176-1-git-send-email-mrochs@linux.vnet.ibm.com> <1443714889-11735-1-git-send-email-mrochs@linux.vnet.ibm.com> Cc: Michael Neuling , linuxppc-dev@lists.ozlabs.org, Manoj Kumar , "Manoj N. Kumar" From: Tomas Henzl Message-ID: <560E7C40.9030504@redhat.com> Date: Fri, 2 Oct 2015 14:44:48 +0200 MIME-Version: 1.0 In-Reply-To: <1443714889-11735-1-git-send-email-mrochs@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 1.10.2015 17:54, Matthew R. Ochs wrote: > From: Manoj Kumar > > Magic numbers are not meaningful and can create confusion. As a > remedy, replace them with descriptive literals. > > Replace 512 with literal MAX_SECTOR_UNIT. > Replace 5 with literal CMD_RETRIES. > > Signed-off-by: Matthew R. Ochs > Signed-off-by: Manoj N. Kumar > Reviewed-by: Brian King > Reviewed-by: Andrew Donnellan Reviewed-by: Tomas Henzl Tomas