From nobody@FreeBSD.org  Sat Nov 10 03:53:33 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 7183E285
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 10 Nov 2012 03:53:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 41C628FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 10 Nov 2012 03:53:33 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qAA3rVPa077051
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 10 Nov 2012 03:53:31 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qAA3rVew077050;
	Sat, 10 Nov 2012 03:53:31 GMT
	(envelope-from nobody)
Message-Id: <201211100353.qAA3rVew077050@red.freebsd.org>
Date: Sat, 10 Nov 2012 03:53:31 GMT
From: Zhouyi Zhou <yizhouzhou@ict.ac.cn>
To: freebsd-gnats-submit@FreeBSD.org
Subject: remove useless assign in ip6_hopopts_input
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         173521
>Category:       kern
>Synopsis:       [ip6] remove useless assign in ip6_hopopts_input
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ae
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 10 09:40:02 UTC 2012
>Closed-Date:    Thu Apr 24 11:15:20 UTC 2014
>Last-Modified:  Thu Apr 24 11:20:02 UTC 2014
>Originator:     Zhouyi Zhou
>Release:        FreeBSD current
>Organization:
ICT CAS
>Environment:
FreeBSD current
>Description:
I think opt = (u_int8_t *)hbh + sizeof(struct ip6_hbh) in ip6_hopopts_input
is currently useless  :-)
>How-To-Repeat:

>Fix:
remove it

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Apr 17 04:25:45 UTC 2014 
Responsible-Changed-Why:  
reassign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173521 
State-Changed-From-To: open->patched 
State-Changed-By: ae 
State-Changed-When: Thu Apr 17 06:40:24 UTC 2014 
State-Changed-Why:  
Patched in head/. 


Responsible-Changed-From-To: freebsd-net->ae 
Responsible-Changed-By: ae 
Responsible-Changed-When: Thu Apr 17 06:40:24 UTC 2014 
Responsible-Changed-Why:  
Take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173521 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/173521: commit references a PR
Date: Thu, 17 Apr 2014 06:40:15 +0000 (UTC)

 Author: ae
 Date: Thu Apr 17 06:40:11 2014
 New Revision: 264582
 URL: http://svnweb.freebsd.org/changeset/base/264582
 
 Log:
   Remove unused variable.
   
   PR:		173521
   MFC after:	1 week
   Sponsored by:	Yandex LLC
 
 Modified:
   head/sys/netinet6/ip6_input.c
 
 Modified: head/sys/netinet6/ip6_input.c
 ==============================================================================
 --- head/sys/netinet6/ip6_input.c	Thu Apr 17 01:43:15 2014	(r264581)
 +++ head/sys/netinet6/ip6_input.c	Thu Apr 17 06:40:11 2014	(r264582)
 @@ -1076,7 +1076,6 @@ ip6_hopopts_input(u_int32_t *plenp, u_in
  	struct mbuf *m = *mp;
  	int off = *offp, hbhlen;
  	struct ip6_hbh *hbh;
 -	u_int8_t *opt;
  
  	/* validation of the length of the header */
  #ifndef PULLDOWN_TEST
 @@ -1103,8 +1102,6 @@ ip6_hopopts_input(u_int32_t *plenp, u_in
  #endif
  	off += hbhlen;
  	hbhlen -= sizeof(struct ip6_hbh);
 -	opt = (u_int8_t *)hbh + sizeof(struct ip6_hbh);
 -
  	if (ip6_process_hopopts(m, (u_int8_t *)hbh + sizeof(struct ip6_hbh),
  				hbhlen, rtalertp, plenp) < 0)
  		return (-1);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: ae 
State-Changed-When: Thu Apr 24 11:14:53 UTC 2014 
State-Changed-Why:  
Merged to stable/8-10. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=173521 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/173521: commit references a PR
Date: Thu, 24 Apr 2014 11:13:43 +0000 (UTC)

 Author: ae
 Date: Thu Apr 24 11:13:38 2014
 New Revision: 264874
 URL: http://svnweb.freebsd.org/changeset/base/264874
 
 Log:
   MFC r264582:
     Remove unused variable.
   
   PR:		173521
 
 Modified:
   stable/9/sys/netinet6/ip6_input.c
 Directory Properties:
   stable/9/sys/   (props changed)
 
 Modified: stable/9/sys/netinet6/ip6_input.c
 ==============================================================================
 --- stable/9/sys/netinet6/ip6_input.c	Thu Apr 24 11:12:53 2014	(r264873)
 +++ stable/9/sys/netinet6/ip6_input.c	Thu Apr 24 11:13:38 2014	(r264874)
 @@ -1085,7 +1085,6 @@ ip6_hopopts_input(u_int32_t *plenp, u_in
  	struct mbuf *m = *mp;
  	int off = *offp, hbhlen;
  	struct ip6_hbh *hbh;
 -	u_int8_t *opt;
  
  	/* validation of the length of the header */
  #ifndef PULLDOWN_TEST
 @@ -1112,8 +1111,6 @@ ip6_hopopts_input(u_int32_t *plenp, u_in
  #endif
  	off += hbhlen;
  	hbhlen -= sizeof(struct ip6_hbh);
 -	opt = (u_int8_t *)hbh + sizeof(struct ip6_hbh);
 -
  	if (ip6_process_hopopts(m, (u_int8_t *)hbh + sizeof(struct ip6_hbh),
  				hbhlen, rtalertp, plenp) < 0)
  		return (-1);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/173521: commit references a PR
Date: Thu, 24 Apr 2014 11:12:57 +0000 (UTC)

 Author: ae
 Date: Thu Apr 24 11:12:53 2014
 New Revision: 264873
 URL: http://svnweb.freebsd.org/changeset/base/264873
 
 Log:
   MFC r264582:
     Remove unused variable.
   
   PR:		173521
 
 Modified:
   stable/10/sys/netinet6/ip6_input.c
 Directory Properties:
   stable/10/   (props changed)
 
 Modified: stable/10/sys/netinet6/ip6_input.c
 ==============================================================================
 --- stable/10/sys/netinet6/ip6_input.c	Thu Apr 24 10:27:21 2014	(r264872)
 +++ stable/10/sys/netinet6/ip6_input.c	Thu Apr 24 11:12:53 2014	(r264873)
 @@ -1074,7 +1074,6 @@ ip6_hopopts_input(u_int32_t *plenp, u_in
  	struct mbuf *m = *mp;
  	int off = *offp, hbhlen;
  	struct ip6_hbh *hbh;
 -	u_int8_t *opt;
  
  	/* validation of the length of the header */
  #ifndef PULLDOWN_TEST
 @@ -1101,8 +1100,6 @@ ip6_hopopts_input(u_int32_t *plenp, u_in
  #endif
  	off += hbhlen;
  	hbhlen -= sizeof(struct ip6_hbh);
 -	opt = (u_int8_t *)hbh + sizeof(struct ip6_hbh);
 -
  	if (ip6_process_hopopts(m, (u_int8_t *)hbh + sizeof(struct ip6_hbh),
  				hbhlen, rtalertp, plenp) < 0)
  		return (-1);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/173521: commit references a PR
Date: Thu, 24 Apr 2014 11:14:21 +0000 (UTC)

 Author: ae
 Date: Thu Apr 24 11:14:17 2014
 New Revision: 264875
 URL: http://svnweb.freebsd.org/changeset/base/264875
 
 Log:
   MFC r264582:
     Remove unused variable.
   
   PR:		173521
 
 Modified:
   stable/8/sys/netinet6/ip6_input.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/netinet6/   (props changed)
 
 Modified: stable/8/sys/netinet6/ip6_input.c
 ==============================================================================
 --- stable/8/sys/netinet6/ip6_input.c	Thu Apr 24 11:13:38 2014	(r264874)
 +++ stable/8/sys/netinet6/ip6_input.c	Thu Apr 24 11:14:17 2014	(r264875)
 @@ -991,7 +991,6 @@ ip6_hopopts_input(u_int32_t *plenp, u_in
  	struct mbuf *m = *mp;
  	int off = *offp, hbhlen;
  	struct ip6_hbh *hbh;
 -	u_int8_t *opt;
  
  	/* validation of the length of the header */
  #ifndef PULLDOWN_TEST
 @@ -1018,8 +1017,6 @@ ip6_hopopts_input(u_int32_t *plenp, u_in
  #endif
  	off += hbhlen;
  	hbhlen -= sizeof(struct ip6_hbh);
 -	opt = (u_int8_t *)hbh + sizeof(struct ip6_hbh);
 -
  	if (ip6_process_hopopts(m, (u_int8_t *)hbh + sizeof(struct ip6_hbh),
  				hbhlen, rtalertp, plenp) < 0)
  		return (-1);
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
