[CPUFREQ] Fix sysfs_create_file return value handling
Commit 0a4b2ccc in cpufreq.git eliminates the build warnings but does not pass on the error code of sysfs_create_file to the function calling cpufreq_add_dev. Instead some previous value of ret would be returned. Signed-off-by: NTobias Klauser <tklauser@distanz.ch> Signed-off-by: NDave Jones <davej@redhat.com>
Showing
想要评论请 注册 或 登录