We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e77cb commit c31a953Copy full SHA for c31a953
switchtec.c
@@ -25,7 +25,6 @@
25
#include <linux/poll.h>
26
#include <linux/wait.h>
27
#include <linux/io-64-nonatomic-lo-hi.h>
28
-#include <linux/nospec.h>
29
30
#include "version.h"
31
MODULE_DESCRIPTION("Microsemi Switchtec(tm) PCIe Management Driver");
@@ -965,8 +964,6 @@ static int ioctl_port_to_pff(struct switchtec_dev *stdev,
965
964
default:
966
if (p.port > ARRAY_SIZE(pcfg->dsp_pff_inst_id))
967
return -EINVAL;
968
- p.port = array_index_nospec(p.port,
969
- ARRAY_SIZE(pcfg->dsp_pff_inst_id) + 1);
970
p.pff = ioread32(&pcfg->dsp_pff_inst_id[p.port - 1]);
971
break;
972
}
0 commit comments