changeset 24404:a1d3db812a4a

12097 sun_fc: control reaches end of non-void function Reviewed by: C Fraire <cfraire@me.com> Approved by: Richard Lowe <richlowe@richlowe.net>
author Toomas Soome <tsoome@me.com>
date Mon, 26 Nov 2018 00:23:11 +0200
parents 4515f176566f
children c3dca16ed9ef
files usr/src/lib/sun_fc/common/Sun_fcScsiInquiryV2.cc usr/src/lib/sun_fc/common/Sun_fcScsiReadCapacityV2.cc
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/sun_fc/common/Sun_fcScsiInquiryV2.cc	Wed Dec 18 06:37:16 2019 -0800
+++ b/usr/src/lib/sun_fc/common/Sun_fcScsiInquiryV2.cc	Mon Nov 26 00:23:11 2018 +0200
@@ -53,7 +53,7 @@
  * @param	    responseBuffer User-allocated response buffer
  * @param	    responseSize Size of User-allocated response buffer
  * @param	    scsiStatus User-allocated scsi status byte
- * 
+ *
  * @doc		    This routine will attempt a limited number of retries
  *		    When busy or again errors are encountered.
  */
@@ -91,6 +91,7 @@
 		return (HBA_STATUS_ERROR);
 	    }
 	}
+	return (HBA_STATUS_ERROR_TRY_AGAIN);
 }
 #ifdef	__cplusplus
 }
--- a/usr/src/lib/sun_fc/common/Sun_fcScsiReadCapacityV2.cc	Wed Dec 18 06:37:16 2019 -0800
+++ b/usr/src/lib/sun_fc/common/Sun_fcScsiReadCapacityV2.cc	Mon Nov 26 00:23:11 2018 +0200
@@ -50,7 +50,7 @@
  * @param	    responseBuffer User-allocated response buffer
  * @param	    responseSize Size of User-allocated response buffer
  * @param	    scsiStatus User-allocated scsi status byte
- * 
+ *
  * @doc		    This routine will attempt a limited number of retries
  *		    When busy or again errors are encountered.
  */
@@ -87,6 +87,7 @@
 		return (HBA_STATUS_ERROR);
 	    }
 	}
+	return (HBA_STATUS_ERROR_TRY_AGAIN);
 }
 #ifdef	__cplusplus
 }