From: Ian Abbott Date: Mon, 15 Oct 2012 12:07:31 +0000 (+0100) Subject: staging: comedi: avoid a put_device(), get_device() sequence X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~1143 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a7717dfe097d7a0a08e824ed39547c3e6e9d7e8;p=pandora-kernel.git staging: comedi: avoid a put_device(), get_device() sequence In `comedi_set_hw_dev()`, if there is no change to `dev->hw_dev` (and it is not `NULL`), don't bother putting and getting the device. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed