From: Rogério Brito Date: Thu, 3 Feb 2011 03:42:05 +0000 (-0200) Subject: Bluetooth: ath3k: Avoid duplication of code X-Git-Tag: v2.6.39-rc1~468^2~238^2^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84f0e17f78471857104a20dfc57711409f68d7bf;p=pandora-kernel.git Bluetooth: ath3k: Avoid duplication of code In commit 86e09287e4f8c81831b4d4118a48597565f0d21b, to reduce memory usage, the functions of the ath3k module were rewritten to release the firmware blob after it has been loaded (successfully or not). The resuting code has some redundancy and the compiler can potentially produce better code if we omit a function call that is unconditionally executed in ,---- | if (ath3k_load_firmware(udev, firmware)) { | release_firmware(firmware); | return -EIO; | } | release_firmware(firmware); | | return 0; | } `---- It may also be argued that the rewritten code becomes easier to read, and also to see the code coverage of the snippet in question. Signed-off-by: Rogério Brito Cc: Alexander Holler Cc: "Gustavo F. Padovan" Cc: Miguel Ojeda Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed