From: David Herrmann Date: Wed, 28 Mar 2012 09:48:42 +0000 (+0200) Subject: Bluetooth: vhci: Ignore return code of nonseekable_open() X-Git-Tag: v3.5-rc1~101^2~6^2^2^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dea0141a9d9c33a669c546f8f5d9f44a0557375;p=pandora-kernel.git Bluetooth: vhci: Ignore return code of nonseekable_open() The comment in ./fs/open.c clearly states that nonseekable_open() will never fail. Therefore, we can safely ignore the return code. This is the recommended way to deal with nonseekable_open(). Our current code looks like nonseekable_open() is checked for the return code. However, if we check the return code, we must also kfree() our private data if the open fails. To avoid this overhead and to avoid confusion, we simply drop the return code and return 0. Signed-off-by: David Herrmann Acked-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed