ipcnum,
pDrvData->IPCs[ipcnum].usIntCount);
- if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) {
+ if (ipcnum > ARRAY_SIZE(pDrvData->IPCs)) {
PRINTK_ERROR(KERN_ERR_MWAVE
"mwavedd::mwave_ioctl:"
" IOCTL_MW_REGISTER_IPC:"
}
-static const struct file_operations mwave_fops = {
+static struct file_operations mwave_fops = {
.owner = THIS_MODULE,
.read = mwave_read,
.write = mwave_write,