|
@@ -1044,8 +1044,7 @@ static long i2o_cfg_ioctl(struct file *fp, unsigned int cmd, unsigned long arg)
|
|
|
|
|
|
static int cfg_open(struct inode *inode, struct file *file)
|
|
static int cfg_open(struct inode *inode, struct file *file)
|
|
{
|
|
{
|
|
- struct i2o_cfg_info *tmp =
|
|
|
|
- (struct i2o_cfg_info *)kmalloc(sizeof(struct i2o_cfg_info),
|
|
|
|
|
|
+ struct i2o_cfg_info *tmp = kmalloc(sizeof(struct i2o_cfg_info),
|
|
GFP_KERNEL);
|
|
GFP_KERNEL);
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
|
|
|