[PATCH] Removes unused variable from /sound/usb/usx2y/usbusx2yaudio.c
This Patch removes unused variable from /sound/usb/usx2y/usbusx2yaudio.c in kernel 2.6.11 Signed-off-by: Telemaque Ndizihiwe <[EMAIL PROTECTED]> --- linux-2.6.11/sound/usb/usx2y/usbusx2yaudio.c.orig 2005-03-05 17:05:20.165551616 + +++ linux-2.6.11/sound/usb/usx2y/usbusx2yaudio.c2005-03-05 17:09:43.072583672 + @@ -415,7 +415,6 @@ static int usX2Y_urbs_allocate(snd_usX2Y unsigned int pipe; int is_playback = subs == subs->usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK]; struct usb_device *dev = subs->usX2Y->chip.dev; - struct usb_host_endpoint *ep; pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : usb_rcvisocpipe(dev, subs->endpoint); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Removes unused variable from /sound/usb/usx2y/usbusx2yaudio.c
This Patch removes unused variable from /sound/usb/usx2y/usbusx2yaudio.c in kernel 2.6.11 Signed-off-by: Telemaque Ndizihiwe [EMAIL PROTECTED] --- linux-2.6.11/sound/usb/usx2y/usbusx2yaudio.c.orig 2005-03-05 17:05:20.165551616 + +++ linux-2.6.11/sound/usb/usx2y/usbusx2yaudio.c2005-03-05 17:09:43.072583672 + @@ -415,7 +415,6 @@ static int usX2Y_urbs_allocate(snd_usX2Y unsigned int pipe; int is_playback = subs == subs-usX2Y-subs[SNDRV_PCM_STREAM_PLAYBACK]; struct usb_device *dev = subs-usX2Y-chip.dev; - struct usb_host_endpoint *ep; pipe = is_playback ? usb_sndisocpipe(dev, subs-endpoint) : usb_rcvisocpipe(dev, subs-endpoint); - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Removes unnecessary if statement from /drivers/block/z2ram.c
This Patch removes unnecessary if statement from a function that has no implementation (in kernel 2.6.x and 2.4.x); the function returns 0 with or without the if statement: static int z2_release(struct inode *inode, struct file *filp) { if(current_device==-1) return 0; return 0; } Signed-off-by: Telemaque Ndizihiwe <[EMAIL PROTECTED]> --- linux-2.6.10/drivers/block/z2ram.c.orig 2005-02-23 18:02:51.011967584 + +++ linux-2.6.10/drivers/block/z2ram.c 2005-02-23 18:05:31.617551824 + @@ -304,9 +304,6 @@ err_out: static int z2_release( struct inode *inode, struct file *filp ) { -if ( current_device == -1 ) - return 0; - /* * FIXME: unmap memory */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Removes unnecessary if statement from /drivers/block/z2ram.c
This Patch removes unnecessary if statement from a function that has no implementation (in kernel 2.6.x and 2.4.x); the function returns 0 with or without the if statement: static int z2_release(struct inode *inode, struct file *filp) { if(current_device==-1) return 0; return 0; } Signed-off-by: Telemaque Ndizihiwe [EMAIL PROTECTED] --- linux-2.6.10/drivers/block/z2ram.c.orig 2005-02-23 18:02:51.011967584 + +++ linux-2.6.10/drivers/block/z2ram.c 2005-02-23 18:05:31.617551824 + @@ -304,9 +304,6 @@ err_out: static int z2_release( struct inode *inode, struct file *filp ) { -if ( current_device == -1 ) - return 0; - /* * FIXME: unmap memory */ - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Removes unused label from /drivers/isdn/hisax/hisax_fcpcipnp.c
This Patch removes (in kernel 2.6.10) an unused label (fixes compiler WARNING) and a function (inside a preprocessor directive) that is never called. Signed-off- by: Telemaque Ndizihiwe <[EMAIL PROTECTED]> --- linux-2.6.10/drivers/isdn/hisax/hisax_fcpcipnp.c.orig 2005-02-26 19:16:06.030150400 + +++ linux-2.6.10/drivers/isdn/hisax/hisax_fcpcipnp.c2005-02-26 19:18:01.023668728 + @@ -1010,12 +1010,6 @@ static int __init hisax_fcpcipnp_init(vo #endif return 0; -#if !defined(CONFIG_HOTPLUG) || defined(MODULE) - out_unregister_isapnp: -#ifdef __ISAPNP__ - pnp_unregister_driver(_driver); -#endif -#endif out_unregister_pci: pci_unregister_driver(_driver); out: - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Removes unused label from /drivers/isdn/hisax/hisax_fcpcipnp.c
This Patch removes (in kernel 2.6.10) an unused label (fixes compiler WARNING) and a function (inside a preprocessor directive) that is never called. Signed-off- by: Telemaque Ndizihiwe [EMAIL PROTECTED] --- linux-2.6.10/drivers/isdn/hisax/hisax_fcpcipnp.c.orig 2005-02-26 19:16:06.030150400 + +++ linux-2.6.10/drivers/isdn/hisax/hisax_fcpcipnp.c2005-02-26 19:18:01.023668728 + @@ -1010,12 +1010,6 @@ static int __init hisax_fcpcipnp_init(vo #endif return 0; -#if !defined(CONFIG_HOTPLUG) || defined(MODULE) - out_unregister_isapnp: -#ifdef __ISAPNP__ - pnp_unregister_driver(fcpnp_driver); -#endif -#endif out_unregister_pci: pci_unregister_driver(fcpci_driver); out: - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Replaces (2 * HZ) with DATA_TIMEOUT in /drivers/usb/atm/speedtch.c
This Patch replaces "(2 * HZ)" with "DATA_TIMEOUT" which is defined as #define DATA_TIMEOUT (2 * HZ) in /drivers/usb/atm/speedtch.c in kernel 2.6.10. Signed-off-by: Telemaque Ndizihiwe <[EMAIL PROTECTED]> --- linux-2.6.10/drivers/usb/atm/speedtch.c.orig2005-02-20 12:44:22.235267848 + +++ linux-2.6.10/drivers/usb/atm/speedtch.c2005-02-20 12:50:52.205983288 + @@ -494,7 +494,7 @@ static void speedtch_upload_firmware(str /* URB 7 */ if (dl_512_first) {/* some modems need a read before writing the firmware */ ret = usb_bulk_msg(usb_dev, usb_rcvbulkpipe(usb_dev, SPEEDTCH_ENDPOINT_FIRMWARE), - buffer, 0x200, _length, 2 * HZ); + buffer, 0x200, _length, DATA_TIMEOUT); if (ret < 0 && ret != -ETIMEDOUT) dbg("speedtch_upload_firmware: read BLOCK0 from modem failed (%d)!", ret); --- linux-2.6.10/drivers/usb/atm/speedtch.c.orig2005-02-20 12:44:22.235267848 + +++ linux-2.6.10/drivers/usb/atm/speedtch.c 2005-02-20 12:50:52.205983288 + @@ -494,7 +494,7 @@ static void speedtch_upload_firmware(str /* URB 7 */ if (dl_512_first) { /* some modems need a read before writing the firmware */ ret = usb_bulk_msg(usb_dev, usb_rcvbulkpipe(usb_dev, SPEEDTCH_ENDPOINT_FIRMWARE), - buffer, 0x200, _length, 2 * HZ); + buffer, 0x200, _length, DATA_TIMEOUT); if (ret < 0 && ret != -ETIMEDOUT) dbg("speedtch_upload_firmware: read BLOCK0 from modem failed (%d)!", ret);
[PATCH] Removes unnecessary "if" statement from drivers/block/z2ram.c
This Patch removes unnecessary "if" statement from a function without implementation (in kernel 2.6.x and 2.4.x), the function returns "0" with or without the "if" statement. Signed-off-by: Telemaque Ndizihiwe <[EMAIL PROTECTED]> --- linux-2.6.10/drivers/block/z2ram.c.orig2005-02-23 18:02:51.011967584 + +++ linux-2.6.10/drivers/block/z2ram.c2005-02-23 18:05:31.617551824 + @@ -304,9 +304,6 @@ err_out: static int z2_release( struct inode *inode, struct file *filp ) { -if ( current_device == -1 ) -return 0; - /* * FIXME: unmap memory */ --- linux-2.6.10/drivers/block/z2ram.c.orig 2005-02-23 18:02:51.011967584 + +++ linux-2.6.10/drivers/block/z2ram.c 2005-02-23 18:05:31.617551824 + @@ -304,9 +304,6 @@ err_out: static int z2_release( struct inode *inode, struct file *filp ) { -if ( current_device == -1 ) - return 0; - /* * FIXME: unmap memory */
[PATCH] Removes unnecessary if statement from drivers/block/z2ram.c
This Patch removes unnecessary if statement from a function without implementation (in kernel 2.6.x and 2.4.x), the function returns 0 with or without the if statement. Signed-off-by: Telemaque Ndizihiwe [EMAIL PROTECTED] --- linux-2.6.10/drivers/block/z2ram.c.orig2005-02-23 18:02:51.011967584 + +++ linux-2.6.10/drivers/block/z2ram.c2005-02-23 18:05:31.617551824 + @@ -304,9 +304,6 @@ err_out: static int z2_release( struct inode *inode, struct file *filp ) { -if ( current_device == -1 ) -return 0; - /* * FIXME: unmap memory */ --- linux-2.6.10/drivers/block/z2ram.c.orig 2005-02-23 18:02:51.011967584 + +++ linux-2.6.10/drivers/block/z2ram.c 2005-02-23 18:05:31.617551824 + @@ -304,9 +304,6 @@ err_out: static int z2_release( struct inode *inode, struct file *filp ) { -if ( current_device == -1 ) - return 0; - /* * FIXME: unmap memory */
[PATCH] Replaces (2 * HZ) with DATA_TIMEOUT in /drivers/usb/atm/speedtch.c
This Patch replaces (2 * HZ) with DATA_TIMEOUT which is defined as #define DATA_TIMEOUT (2 * HZ) in /drivers/usb/atm/speedtch.c in kernel 2.6.10. Signed-off-by: Telemaque Ndizihiwe [EMAIL PROTECTED] --- linux-2.6.10/drivers/usb/atm/speedtch.c.orig2005-02-20 12:44:22.235267848 + +++ linux-2.6.10/drivers/usb/atm/speedtch.c2005-02-20 12:50:52.205983288 + @@ -494,7 +494,7 @@ static void speedtch_upload_firmware(str /* URB 7 */ if (dl_512_first) {/* some modems need a read before writing the firmware */ ret = usb_bulk_msg(usb_dev, usb_rcvbulkpipe(usb_dev, SPEEDTCH_ENDPOINT_FIRMWARE), - buffer, 0x200, actual_length, 2 * HZ); + buffer, 0x200, actual_length, DATA_TIMEOUT); if (ret 0 ret != -ETIMEDOUT) dbg(speedtch_upload_firmware: read BLOCK0 from modem failed (%d)!, ret); --- linux-2.6.10/drivers/usb/atm/speedtch.c.orig2005-02-20 12:44:22.235267848 + +++ linux-2.6.10/drivers/usb/atm/speedtch.c 2005-02-20 12:50:52.205983288 + @@ -494,7 +494,7 @@ static void speedtch_upload_firmware(str /* URB 7 */ if (dl_512_first) { /* some modems need a read before writing the firmware */ ret = usb_bulk_msg(usb_dev, usb_rcvbulkpipe(usb_dev, SPEEDTCH_ENDPOINT_FIRMWARE), - buffer, 0x200, actual_length, 2 * HZ); + buffer, 0x200, actual_length, DATA_TIMEOUT); if (ret 0 ret != -ETIMEDOUT) dbg(speedtch_upload_firmware: read BLOCK0 from modem failed (%d)!, ret);
[PATCH] Replaces (2 * HZ) with DATA_TIMEOUT in /drivers/usb/atm/speedtch.c
This Patch replaces "(2 * HZ)" with "DATA_TIMEOUT" which is defined as #define DATA_TIMEOUT (2 * HZ) in /drivers/usb/atm/speedtch.c in kernel 2.6.10. Signed-off-by: Telemaque Ndizihiwe <[EMAIL PROTECTED]> --- linux-2.6.10/drivers/usb/atm/speedtch.c.orig2005-02-20 12:44:22.235267848 + +++ linux-2.6.10/drivers/usb/atm/speedtch.c 2005-02-20 12:50:52.205983288 + @@ -494,7 +494,7 @@ static void speedtch_upload_firmware(str /* URB 7 */ if (dl_512_first) { /* some modems need a read before writing the firmware */ ret = usb_bulk_msg(usb_dev, usb_rcvbulkpipe(usb_dev, SPEEDTCH_ENDPOINT_FIRMWARE), - buffer, 0x200, _length, 2 * HZ); + buffer, 0x200, _length, DATA_TIMEOUT); if (ret < 0 && ret != -ETIMEDOUT) dbg("speedtch_upload_firmware: read BLOCK0 from modem failed (%d)!", ret); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Replaces (2 * HZ) with DATA_TIMEOUT in /drivers/usb/atm/speedtch.c
This Patch replaces (2 * HZ) with DATA_TIMEOUT which is defined as #define DATA_TIMEOUT (2 * HZ) in /drivers/usb/atm/speedtch.c in kernel 2.6.10. Signed-off-by: Telemaque Ndizihiwe [EMAIL PROTECTED] --- linux-2.6.10/drivers/usb/atm/speedtch.c.orig2005-02-20 12:44:22.235267848 + +++ linux-2.6.10/drivers/usb/atm/speedtch.c 2005-02-20 12:50:52.205983288 + @@ -494,7 +494,7 @@ static void speedtch_upload_firmware(str /* URB 7 */ if (dl_512_first) { /* some modems need a read before writing the firmware */ ret = usb_bulk_msg(usb_dev, usb_rcvbulkpipe(usb_dev, SPEEDTCH_ENDPOINT_FIRMWARE), - buffer, 0x200, actual_length, 2 * HZ); + buffer, 0x200, actual_length, DATA_TIMEOUT); if (ret 0 ret != -ETIMEDOUT) dbg(speedtch_upload_firmware: read BLOCK0 from modem failed (%d)!, ret); - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Remove unnecessary addition operations from usb/core/hub.c
This Patch removes unnecessary addition operations from usb/core/hub.c in kernel 2.6.10. usb_disable_endpoint(udev, 0 + USB_DIR_IN); //replaced by usb_disable_endpoint(udev, USB_DIR_IN); usb_disable_endpoint(udev, 0 + USB_DIR_OUT); //replaced by usb_disable_endpoint(udev, USB_DIR_OUT); Signed-off-by: Telemaque Ndizihiwe <[EMAIL PROTECTED]> --- linux-2.6.10/drivers/usb/core/hub.c.orig2005-02-19 12:26:28.682067480 + +++ linux-2.6.10/drivers/usb/core/hub.c 2005-02-19 12:38:55.059600848 + @@ -2044,8 +2044,8 @@ static int hub_set_address(struct usb_de int m = udev->epmaxpacketin[0]; usb_set_device_state(udev, USB_STATE_ADDRESS); - usb_disable_endpoint(udev, 0 + USB_DIR_IN); - usb_disable_endpoint(udev, 0 + USB_DIR_OUT); + usb_disable_endpoint(udev, USB_DIR_IN); + usb_disable_endpoint(udev, USB_DIR_OUT); udev->epmaxpacketin[0] = udev->epmaxpacketout[0] = m; } return retval; @@ -2244,8 +2244,8 @@ hub_port_init (struct usb_device *hdev, i = udev->descriptor.bMaxPacketSize0; if (udev->epmaxpacketin[0] != i) { dev_dbg(>dev, "ep0 maxpacket = %d\n", i); - usb_disable_endpoint(udev, 0 + USB_DIR_IN); - usb_disable_endpoint(udev, 0 + USB_DIR_OUT); + usb_disable_endpoint(udev, USB_DIR_IN); + usb_disable_endpoint(udev, USB_DIR_OUT); udev->epmaxpacketin[0] = udev->epmaxpacketout[0] = i; } @@ -2508,8 +2508,8 @@ static void hub_port_connect_change(stru loop: hub_port_disable(hdev, port); - usb_disable_endpoint(udev, 0 + USB_DIR_IN); - usb_disable_endpoint(udev, 0 + USB_DIR_OUT); + usb_disable_endpoint(udev, USB_DIR_IN); + usb_disable_endpoint(udev, USB_DIR_OUT); release_address(udev); usb_put_dev(udev); if (status == -ENOTCONN) @@ -2893,8 +2893,8 @@ int usb_reset_device(struct usb_device * /* ep0 maxpacket size may change; let the HCD know about it. * Other endpoints will be handled by re-enumeration. */ - usb_disable_endpoint(udev, 0 + USB_DIR_IN); - usb_disable_endpoint(udev, 0 + USB_DIR_OUT); + usb_disable_endpoint(udev, USB_DIR_IN); + usb_disable_endpoint(udev, USB_DIR_OUT); ret = hub_port_init(parent, udev, port, i); if (ret >= 0) break; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH] Remove unnecessary addition operations from usb/core/hub.c
This Patch removes unnecessary addition operations from usb/core/hub.c in kernel 2.6.10. usb_disable_endpoint(udev, 0 + USB_DIR_IN); //replaced by usb_disable_endpoint(udev, USB_DIR_IN); usb_disable_endpoint(udev, 0 + USB_DIR_OUT); //replaced by usb_disable_endpoint(udev, USB_DIR_OUT); Signed-off-by: Telemaque Ndizihiwe [EMAIL PROTECTED] --- linux-2.6.10/drivers/usb/core/hub.c.orig2005-02-19 12:26:28.682067480 + +++ linux-2.6.10/drivers/usb/core/hub.c 2005-02-19 12:38:55.059600848 + @@ -2044,8 +2044,8 @@ static int hub_set_address(struct usb_de int m = udev-epmaxpacketin[0]; usb_set_device_state(udev, USB_STATE_ADDRESS); - usb_disable_endpoint(udev, 0 + USB_DIR_IN); - usb_disable_endpoint(udev, 0 + USB_DIR_OUT); + usb_disable_endpoint(udev, USB_DIR_IN); + usb_disable_endpoint(udev, USB_DIR_OUT); udev-epmaxpacketin[0] = udev-epmaxpacketout[0] = m; } return retval; @@ -2244,8 +2244,8 @@ hub_port_init (struct usb_device *hdev, i = udev-descriptor.bMaxPacketSize0; if (udev-epmaxpacketin[0] != i) { dev_dbg(udev-dev, ep0 maxpacket = %d\n, i); - usb_disable_endpoint(udev, 0 + USB_DIR_IN); - usb_disable_endpoint(udev, 0 + USB_DIR_OUT); + usb_disable_endpoint(udev, USB_DIR_IN); + usb_disable_endpoint(udev, USB_DIR_OUT); udev-epmaxpacketin[0] = udev-epmaxpacketout[0] = i; } @@ -2508,8 +2508,8 @@ static void hub_port_connect_change(stru loop: hub_port_disable(hdev, port); - usb_disable_endpoint(udev, 0 + USB_DIR_IN); - usb_disable_endpoint(udev, 0 + USB_DIR_OUT); + usb_disable_endpoint(udev, USB_DIR_IN); + usb_disable_endpoint(udev, USB_DIR_OUT); release_address(udev); usb_put_dev(udev); if (status == -ENOTCONN) @@ -2893,8 +2893,8 @@ int usb_reset_device(struct usb_device * /* ep0 maxpacket size may change; let the HCD know about it. * Other endpoints will be handled by re-enumeration. */ - usb_disable_endpoint(udev, 0 + USB_DIR_IN); - usb_disable_endpoint(udev, 0 + USB_DIR_OUT); + usb_disable_endpoint(udev, USB_DIR_IN); + usb_disable_endpoint(udev, USB_DIR_OUT); ret = hub_port_init(parent, udev, port, i); if (ret = 0) break; - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/