broadcast_error_message() is only used for ERR_NONFATAL events, when the
state is always pci_channel_io_normal, so remove the unused alternate path.
Signed-off-by: Oza Pawandeep <poza@codeaurora.org>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
                /*
                 * If the error is reported by an end point, we think this
                 * error is related to the upstream link of the end point.
+                * The error is non fatal so the bus is ok; just invoke
+                * the callback for the function that logged the error.
                 */
-               if (state == pci_channel_io_normal)
-                       /*
-                        * the error is non fatal so the bus is ok, just invoke
-                        * the callback for the function that logged the error.
-                        */
-                       cb(dev, &result_data);
-               else
-                       pci_walk_bus(dev->bus, cb, &result_data);
+               cb(dev, &result_data);
        }
 
        return result_data.result;