ACPI: utils: remove unreachable breaks
authorTom Rix <trix@redhat.com>
Mon, 19 Oct 2020 20:04:53 +0000 (13:04 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 22 Oct 2020 16:58:26 +0000 (18:58 +0200)
A break following a return statement is pointless, so drop all of
the breaks following return statements from this file.

Signed-off-by: Tom Rix <trix@redhat.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/utils.c

index 838b719..d5411a1 100644 (file)
@@ -104,7 +104,6 @@ acpi_extract_package(union acpi_object *package,
                                              " [%c]\n",
                                              i, format_string[i]);
                                return AE_BAD_DATA;
-                               break;
                        }
                        break;
 
@@ -129,7 +128,6 @@ acpi_extract_package(union acpi_object *package,
                                              " expecting [%c]\n",
                                              i, format_string[i]);
                                return AE_BAD_DATA;
-                               break;
                        }
                        break;
                case ACPI_TYPE_LOCAL_REFERENCE:
@@ -144,7 +142,6 @@ acpi_extract_package(union acpi_object *package,
                                              " expecting [%c]\n",
                                              i, format_string[i]);
                                return AE_BAD_DATA;
-                               break;
                        }
                        break;
 
@@ -155,7 +152,6 @@ acpi_extract_package(union acpi_object *package,
                                          i));
                        /* TBD: handle nested packages... */
                        return AE_SUPPORT;
-                       break;
                }
        }