Skip to content

Commit cd6b7c8

Browse files
committed
Merge branch 'pci/misc'
- Use max() instead of max_t() to ease static analysis (David Laight) - Add Manivannan Sadhasivam as PCI/pwrctrl maintainer (Bartosz Golaszewski) * pci/misc: MAINTAINERS: Add Manivannan Sadhasivam as PCI/pwrctrl maintainer PCI: Use max() instead of max_t() to ease static analysis
2 parents 9f1aa39 + 7eba05e commit cd6b7c8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19887,6 +19887,7 @@ F: include/linux/pci-p2pdma.h
1988719887

1988819888
PCI POWER CONTROL
1988919889
M: Bartosz Golaszewski <brgl@bgdev.pl>
19890+
M: Manivannan Sadhasivam <mani@kernel.org>
1989019891
L: linux-pci@vger.kernel.org
1989119892
S: Maintained
1989219893
T: git git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git

drivers/pci/probe.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3174,8 +3174,7 @@ static unsigned int pci_scan_child_bus_extend(struct pci_bus *bus,
31743174
* bus number if there is room.
31753175
*/
31763176
if (bus->self && bus->self->is_hotplug_bridge) {
3177-
used_buses = max_t(unsigned int, available_buses,
3178-
pci_hotplug_bus_size - 1);
3177+
used_buses = max(available_buses, pci_hotplug_bus_size - 1);
31793178
if (max - start < used_buses) {
31803179
max = start + used_buses;
31813180

0 commit comments

Comments
 (0)