From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Date: Thu, 07 Jan 2016 12:08:45 +0000 Subject: Re: [patch] iommu/amd: remove an unneeded condition Message-Id: <20160107120845.GD19149@8bytes.org> List-Id: References: <20160107093606.GB27186@mwanda> In-Reply-To: <20160107093606.GB27186@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jiang Liu On Thu, Jan 07, 2016 at 12:36:06PM +0300, Dan Carpenter wrote: > get_device_id() returns an unsigned short device id. It never fails and > it never returns a negative so we can remove this condition. > > Signed-off-by: Dan Carpenter Applied, thanks. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [patch] iommu/amd: remove an unneeded condition Date: Thu, 7 Jan 2016 13:08:45 +0100 Message-ID: <20160107120845.GD19149@8bytes.org> References: <20160107093606.GB27186@mwanda> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20160107093606.GB27186@mwanda> 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: Dan Carpenter Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jiang Liu List-Id: iommu@lists.linux-foundation.org On Thu, Jan 07, 2016 at 12:36:06PM +0300, Dan Carpenter wrote: > get_device_id() returns an unsigned short device id. It never fails and > it never returns a negative so we can remove this condition. > > Signed-off-by: Dan Carpenter Applied, thanks.