Commit 748086eb authored by Stefan Richter's avatar Stefan Richter

firewire: fix compilation with gcc 3.4

drivers/firewire/fw-topology.c: In function `report_found_node':
drivers/firewire/fw-topology.c:345: error: `typeof' applied to a bit-field
drivers/firewire/fw-topology.c:345: error: `typeof' applied to a bit-field
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 83db801c
...@@ -342,8 +342,9 @@ report_found_node(struct fw_card *card, ...@@ -342,8 +342,9 @@ report_found_node(struct fw_card *card,
int b_path = (node->phy_speed == SCODE_BETA); int b_path = (node->phy_speed == SCODE_BETA);
if (parent != NULL) { if (parent != NULL) {
node->max_speed = min((u8)parent->max_speed, /* min() macro doesn't work here with gcc 3.4 */
(u8)node->phy_speed); node->max_speed = parent->max_speed < node->phy_speed ?
parent->max_speed : node->phy_speed;
node->b_path = parent->b_path && b_path; node->b_path = parent->b_path && b_path;
} else { } else {
node->max_speed = node->phy_speed; node->max_speed = node->phy_speed;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment