scsi_cd: ifdef out cdsize()

It was used only by the old cdcheckmedia().

MFC after:	3 weeks
This commit is contained in:
Andriy Gapon 2019-08-29 08:19:11 +00:00
parent dd78f43259
commit c9f2918e69

View File

@ -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)