Author: avg
Date: Thu Aug 29 08:19:11 2019
New Revision: 351600
URL: https://svnweb.freebsd.org/changeset/base/351600

Log:
  scsi_cd: ifdef out cdsize()
  
  It was used only by the old cdcheckmedia().
  
  MFC after:    3 weeks

Modified:
  head/sys/cam/scsi/scsi_cd.c

Modified: head/sys/cam/scsi/scsi_cd.c
==============================================================================
--- head/sys/cam/scsi/scsi_cd.c Thu Aug 29 07:51:11 2019        (r351599)
+++ head/sys/cam/scsi/scsi_cd.c Thu Aug 29 08:19:11 2019        (r351600)
@@ -264,7 +264,9 @@ static      int             cdgetpagesize(int page_num);
 static void            cdprevent(struct cam_periph *periph, int action);
 static void            cdmediaprobedone(struct cam_periph *periph);
 static int             cdcheckmedia(struct cam_periph *periph, int do_wait);
+#if 0
 static int             cdsize(struct cam_periph *periph, u_int32_t *size);
+#endif
 static int             cd6byteworkaround(union ccb *ccb);
 static int             cderror(union ccb *ccb, u_int32_t cam_flags,
                                u_int32_t sense_flags);
@@ -2846,7 +2848,6 @@ bailout:
 
        return (error);
 }
-#endif
 
 static int
 cdsize(struct cam_periph *periph, u_int32_t *size)
@@ -2903,6 +2904,7 @@ cdsize(struct cam_periph *periph, u_int32_t *size)
        return (error);
 
 }
+#endif
 
 static int
 cd6byteworkaround(union ccb *ccb)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to