Skip to content

Commit dfdd70e

Browse files
Alex ElderPaolo Abeni
authored andcommitted
net: ipa: kill ipa_version_supported()
The only place ipa_version_supported() is called is in the probe function. The version comes from the match data. Rather than checking the version validity separately, just consider anything that has match data to be supported. Signed-off-by: Alex Elder <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
1 parent 319b6d4 commit dfdd70e

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

drivers/net/ipa/ipa_main.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -810,11 +810,6 @@ static int ipa_probe(struct platform_device *pdev)
810810
return -ENODEV;
811811
}
812812

813-
if (!ipa_version_supported(data->version)) {
814-
dev_err(dev, "unsupported IPA version %u\n", data->version);
815-
return -EINVAL;
816-
}
817-
818813
if (!data->modem_route_count) {
819814
dev_err(dev, "modem_route_count cannot be zero\n");
820815
return -EINVAL;

drivers/net/ipa/ipa_version.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,6 @@ enum ipa_version {
4747
IPA_VERSION_COUNT, /* Last; not a version */
4848
};
4949

50-
static inline bool ipa_version_supported(enum ipa_version version)
51-
{
52-
switch (version) {
53-
case IPA_VERSION_3_1:
54-
case IPA_VERSION_3_5_1:
55-
case IPA_VERSION_4_2:
56-
case IPA_VERSION_4_5:
57-
case IPA_VERSION_4_7:
58-
case IPA_VERSION_4_9:
59-
case IPA_VERSION_4_11:
60-
case IPA_VERSION_5_0:
61-
case IPA_VERSION_5_5:
62-
return true;
63-
default:
64-
return false;
65-
}
66-
}
67-
6850
/* Execution environment IDs */
6951
enum gsi_ee_id {
7052
GSI_EE_AP = 0x0,

0 commit comments

Comments
 (0)