hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/thermal/intel/intel_quark_dts_thermal.c
....@@ -415,22 +415,14 @@
415415
416416 static int __init intel_quark_thermal_init(void)
417417 {
418
- int err = 0;
419
-
420418 if (!x86_match_cpu(qrk_thermal_ids) || !iosf_mbi_available())
421419 return -ENODEV;
422420
423421 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);
428424
429425 return 0;
430
-
431
-err_free:
432
- free_soc_dts(soc_dts);
433
- return err;
434426 }
435427
436428 static void __exit intel_quark_thermal_exit(void)