.. | .. |
---|
415 | 415 | |
---|
416 | 416 | static int __init intel_quark_thermal_init(void) |
---|
417 | 417 | { |
---|
418 | | - int err = 0; |
---|
419 | | - |
---|
420 | 418 | if (!x86_match_cpu(qrk_thermal_ids) || !iosf_mbi_available()) |
---|
421 | 419 | return -ENODEV; |
---|
422 | 420 | |
---|
423 | 421 | soc_dts = alloc_soc_dts(); |
---|
424 | | - if (IS_ERR(soc_dts)) { |
---|
425 | | - err = PTR_ERR(soc_dts); |
---|
426 | | - goto err_free; |
---|
427 | | - } |
---|
| 422 | + if (IS_ERR(soc_dts)) |
---|
| 423 | + return PTR_ERR(soc_dts); |
---|
428 | 424 | |
---|
429 | 425 | return 0; |
---|
430 | | - |
---|
431 | | -err_free: |
---|
432 | | - free_soc_dts(soc_dts); |
---|
433 | | - return err; |
---|
434 | 426 | } |
---|
435 | 427 | |
---|
436 | 428 | static void __exit intel_quark_thermal_exit(void) |
---|