From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH v1] iommu: Remove extra NULL check when call strtobool() Date: Tue, 15 May 2018 16:29:36 +0200 Message-ID: <20180515142936.nagtyybvu3tfgrsv@8bytes.org> References: <20180514162225.81914-1-andriy.shevchenko@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20180514162225.81914-1-andriy.shevchenko-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Andy Shevchenko Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Mon, May 14, 2018 at 07:22:25PM +0300, Andy Shevchenko wrote: > strtobool() does check for NULL parameter already. No need to repeat. > > While here, switch to kstrtobool() and unshadow actual error code > (which is still -EINVAL). > > No functional change intended. > > Signed-off-by: Andy Shevchenko Applied, thanks.