From owner-p4-projects@FreeBSD.ORG Wed Jul 8 13:58:17 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id CE6751065673; Wed, 8 Jul 2009 13:58:16 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CE99106566C for ; Wed, 8 Jul 2009 13:58:16 +0000 (UTC) (envelope-from syl@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7A4A48FC24 for ; Wed, 8 Jul 2009 13:58:16 +0000 (UTC) (envelope-from syl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n68DwGgT048879 for ; Wed, 8 Jul 2009 13:58:16 GMT (envelope-from syl@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n68DwG1B048877 for perforce@freebsd.org; Wed, 8 Jul 2009 13:58:16 GMT (envelope-from syl@FreeBSD.org) Date: Wed, 8 Jul 2009 13:58:16 GMT Message-Id: <200907081358.n68DwG1B048877@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to syl@FreeBSD.org using -f From: Sylvestre Gallon To: Perforce Change Reviews Cc: Subject: PERFORCE change 165821 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jul 2009 13:58:17 -0000 http://perforce.freebsd.org/chv.cgi?CH=165821 Change 165821 by syl@syl_pablo on 2009/07/08 13:57:50 Remove unused variable. Affected files ... .. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#58 edit .. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_desc.c#20 edit .. //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_io.c#24 edit Differences ... ==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10.c#58 (text+ko) ==== @@ -650,7 +650,6 @@ int interface_number, int alternate_setting) { libusb_context *ctx; - int ret; ctx = NULL; GET_CONTEXT(ctx); @@ -1042,10 +1041,8 @@ libusb_context *ctx; int maxframe; int buffsize; - int num_frame; int ep_idx; int ret; - int i; if (xfer == NULL) return (LIBUSB_ERROR_NO_MEM); ==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_desc.c#20 (text+ko) ==== @@ -281,7 +281,6 @@ { struct libusb20_device *pdev; libusb_context *ctx; - int ret; ctx = NULL; GET_CONTEXT(ctx); ==== //depot/projects/soc2009/syl_usb/src/lib/libusb/libusb10_io.c#24 (text+ko) ==== @@ -165,11 +165,8 @@ get_next_timeout(libusb_context *ctx, struct timeval *tv, struct timeval *out) { struct timeval timeout; - int ret; - ret = libusb_get_next_timeout(ctx, &timeout); - - if (ret) { + if (libusb_get_next_timeout(ctx, &timeout)) { if (timerisset(&timeout) == 0) return 1; if (timercmp(&timeout, tv, <) != 0) @@ -232,14 +229,10 @@ struct libusb_pollfd *tmppollfd; struct libusb_device_handle *devh; struct usb_pollfd *ipollfd; - struct usb_transfer *cur; - struct usb_transfer *cancel; - struct libusb_transfer *xfer; struct pollfd *fds; struct pollfd *tfds; nfds_t nfds; int tmpfd; - int tmp; int ret; int timeout; int i; @@ -489,7 +482,6 @@ int libusb_handle_events_timeout(libusb_context * ctx, struct timeval *tv) { - struct timeval timeout; struct timeval poll_timeout; int ret;