On 9/10/2019 11:07 PM, Ingo Molnar wrote:
* Mike Travis <mike.travis@xxxxxxx> wrote:
+/* Initialize UV hubless systems */
+static __init int uv_system_init_hubless(void)
+{
+ int rc;
+
+ /* Setup PCH NMI handler */
+ uv_nmi_setup_hubless();
+
+ /* Init kernel/BIOS interface */
+ rc = uv_bios_init();
+
+ return rc;
+}
This looks like an excessive cleanup error by me. The original was:
+static __init int uv_system_init_hubless(void)
+{
+ int rc;
+
+ /* Setup PCH NMI handler */
+ uv_nmi_setup_hubless();
+
+ /* Init kernel/BIOS interface */
+ rc = uv_bios_init();
+
+ /* Create user access node if UVsystab available */
+ if (rc >= 0)
+ uv_setup_proc_files(1);
+
+ return rc;
+}
+
Hubbed UV's do not have a non-UV BIOS, but hubless systems in theory can. So uv_bios_init can fail on hubless systems if it has some other BIOS (unlikely but possible). So I removed too much in this cleanup. I'll send another patch set that puts this back.
Thanks,
Mike
Am I the only one who immediately sees the trivial C transformation
through which this function could lose a local variable and become 4
lines shorter?
And this function got two Reviewed-by tags...
Thanks,
Ingo