From: Chris Rorvick Date: Mon, 12 Jan 2015 20:42:59 +0000 (-0800) Subject: staging: line6: Call *_disconnect() via pointer X-Git-Tag: fixes-v4.0-rc1~146^2~55^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46c467251353109683d353826208a17aec9383e;p=pandora-kernel.git staging: line6: Call *_disconnect() via pointer Which *_disconnect() to call on disconnect is known at initialization. Add a function pointer to the `usb_line6' struct and use to call into the appropriate logic instead of evaluating the conditional logic. Signed-off-by: Chris Rorvick Reviewed-by: Stefan Hajnoczi Signed-off-by: Greg Kroah-Hartman Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed