Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2019 13:17:59 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r348356 - stable/12/sys/cam/scsi
Message-ID:  <201905291317.x4TDHxxo097357@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Wed May 29 13:17:58 2019
New Revision: 348356
URL: https://svnweb.freebsd.org/changeset/base/348356

Log:
  MFC r348111: Simplify math added in r310524.
  
  Should be no functional change.

Modified:
  stable/12/sys/cam/scsi/scsi_all.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/cam/scsi/scsi_all.c
==============================================================================
--- stable/12/sys/cam/scsi/scsi_all.c	Wed May 29 09:08:20 2019	(r348355)
+++ stable/12/sys/cam/scsi/scsi_all.c	Wed May 29 13:17:58 2019	(r348356)
@@ -3943,7 +3943,7 @@ scsi_set_sense_data_fixed_va(struct scsi_sense_data *s
 			}
 			if (len > sizeof(sense->cmd_spec_info)) {
 				data += len - sizeof(sense->cmd_spec_info);
-				len -= len - sizeof(sense->cmd_spec_info);
+				len = sizeof(sense->cmd_spec_info);
 			}
 			bcopy(data, &sense->cmd_spec_info[
 			    sizeof(sense->cmd_spec_info) - len], len);



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