From: Krzysztof Opasiak Date: Wed, 21 May 2014 12:05:35 +0000 (+0200) Subject: usb: gadget: FunctionFS: Return -ENOENT instead of -ENODEV when device not found. X-Git-Tag: cleanup-for-v3.18~123^2~18^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d668b4f3cb43522158987f70b5d7744b583c551d;p=pandora-kernel.git usb: gadget: FunctionFS: Return -ENOENT instead of -ENODEV when device not found. Syscall mount returns -ENODEV error if requested FS type has not been found. Returning the same error from FFS mount callback makes value returned to userspace misleading. Other file systems returns -ENOENT if requested device has not been found. Adjust FFS to this convention to make error codes meaningfull. Acked-by: Michal Nazarewicz Signed-off-by: Krzysztof Opasiak Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed