From: Chris Rorvick Date: Fri, 30 Jan 2015 23:45:45 +0000 (-0600) Subject: staging: emxx_udc: Remove nbu2ss_drv_set_dp_info() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~83^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=737fee1bf699635060caa1e940fd30153ff592de;p=pandora-kernel.git staging: emxx_udc: Remove nbu2ss_drv_set_dp_info() This function is an awkward helper for nbu2ss_drv_ep_init(). Most of its logic is devoted to determining if the current endpoint is ep0, something the caller can easily do in a single line. And there is not a lot going on beyond that. Move this logic up into nbu2ss_drv_ep_init(). The result is much easier to understand and the resulting function is still viewable within a single screen. Signed-off-by: Chris Rorvick Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed