Don't use return(foo(...)); in a function returning void.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Nov 2007 17:09:06 +0000 (17:09 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Nov 2007 17:09:06 +0000 (17:09 +0000)
Obtained-from: FreeBSD

sys/bus/cam/scsi/scsi_all.c

index d17cad7..bc384f6 100644 (file)
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/cam/scsi/scsi_all.c,v 1.14.2.11 2003/10/30 15:06:35 thomas Exp $
- * $DragonFly: src/sys/bus/cam/scsi/scsi_all.c,v 1.21 2007/11/24 19:57:01 pavalos Exp $
+ * $DragonFly: src/sys/bus/cam/scsi/scsi_all.c,v 1.22 2007/11/25 17:09:06 pavalos Exp $
  */
 
 #include <sys/param.h>
@@ -2458,9 +2458,9 @@ scsi_mode_sense(struct ccb_scsiio *csio, u_int32_t retries,
                u_int8_t page, u_int8_t *param_buf, u_int32_t param_len,
                u_int8_t sense_len, u_int32_t timeout)
 {
-       return(scsi_mode_sense_len(csio, retries, cbfcnp, tag_action, dbd,
-               page_code, page, param_buf, param_len, 0,
-               sense_len, timeout));
+       scsi_mode_sense_len(csio, retries, cbfcnp, tag_action, dbd,
+                           page_code, page, param_buf, param_len, 0,
+                           sense_len, timeout);
 }
 
 void
@@ -2523,9 +2523,9 @@ scsi_mode_select(struct ccb_scsiio *csio, u_int32_t retries,
                 u_int8_t *param_buf, u_int32_t param_len, u_int8_t sense_len,
                 u_int32_t timeout)
 {
-       return(scsi_mode_select_len(csio, retries, cbfcnp, tag_action,
-               scsi_page_fmt, save_pages, param_buf,
-               param_len, 0, sense_len, timeout));
+       scsi_mode_select_len(csio, retries, cbfcnp, tag_action,
+                            scsi_page_fmt, save_pages, param_buf,
+                            param_len, 0, sense_len, timeout);
 }
 
 void