Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2013 15:17:29 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r251949 - stable/9/sys/dev/sym
Message-ID:  <201306181517.r5IFHTcJ000914@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Tue Jun 18 15:17:29 2013
New Revision: 251949
URL: http://svnweb.freebsd.org/changeset/base/251949

Log:
  MFC: r245263
  
  Clang complains about the comparision of fak < 0 always being
  false. It is right. Delete it because on the next line we catch all
  'negative' cases with the test > 2, since 'negative' numbers are just
  really big unsigned numbers and we do an identical action.

Modified:
  stable/9/sys/dev/sym/sym_hipd.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/sym/sym_hipd.c
==============================================================================
--- stable/9/sys/dev/sym/sym_hipd.c	Tue Jun 18 15:15:53 2013	(r251948)
+++ stable/9/sys/dev/sym/sym_hipd.c	Tue Jun 18 15:17:29 2013	(r251949)
@@ -3430,7 +3430,6 @@ sym_getsync(hcb_p np, u_char dt, u_char 
 	/*
 	 *  Check against our hardware limits, or bugs :).
 	 */
-	if (fak < 0)	{fak = 0; ret = -1;}
 	if (fak > 2)	{fak = 2; ret = -1;}
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306181517.r5IFHTcJ000914>