From: Dan Carpenter Date: Mon, 25 Jan 2010 11:53:33 +0000 (+0300) Subject: USB: io_edgeport: eliminate get_string() X-Git-Tag: v2.6.34-rc1~215^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f10718f5b812a2c55e37396518d426f88d5e35fc;p=pandora-kernel.git USB: io_edgeport: eliminate get_string() Johan Hovold points out that get_string() is basically just a re-implimentation of usb_string(). It is also buggy. It does DMA on the stack and it doesn't handle negative returns from usb_get_descriptor(). Plus unicode_to_ascii() is a rubbish function and moving to usb_string() avoids using it. Let's eliminate get_string() entirely. Reported-by: Johan Hovold Signed-off-by: Dan Carpenter Acked-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed