summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-06-26 14:42:17 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-06-26 14:42:17 +0000
commitb5184a290e8a553843618c8beb113d67df465f98 (patch)
tree3a7857fbb97a4c814f8520b2b88a316e2778bb09 /sys/dev/ppbus
parentc9608015c621a5bda4c209adab59027d8d0e8a96 (diff)
downloadFreeBSD-src-b5184a290e8a553843618c8beb113d67df465f98.zip
FreeBSD-src-b5184a290e8a553843618c8beb113d67df465f98.tar.gz
Remove unused variable and computation, possibly leading to a
divide by zero fault. Possible fix for PR12041 PR: 12041 Submitted-By: J.Hudson@massey.ac.nz Reviewed-By: nsouch
Diffstat (limited to 'sys/dev/ppbus')
-rw-r--r--sys/dev/ppbus/vpo.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/ppbus/vpo.c b/sys/dev/ppbus/vpo.c
index 0d1a6d6..11b5530 100644
--- a/sys/dev/ppbus/vpo.c
+++ b/sys/dev/ppbus/vpo.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: vpo.c,v 1.13 1999/05/06 21:12:52 ken Exp $
+ * $Id: vpo.c,v 1.14 1999/05/06 21:14:49 ken Exp $
*
*/
@@ -357,12 +357,9 @@ vpo_action(struct cam_sim *sim, union ccb *ccb)
case XPT_CALC_GEOMETRY:
{
struct ccb_calc_geometry *ccg;
- u_int32_t size_mb;
u_int32_t secs_per_cylinder;
ccg = &ccb->ccg;
- size_mb = ccg->volume_size
- / ((1024L * 1024L) / ccg->block_size);
#ifdef VP0_DEBUG
printf("vpo%d: XPT_CALC_GEOMETRY (%d, %d) request\n",
OpenPOWER on IntegriCloud