File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
drivers/media/dvb/frontends Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,8 @@ int init_module(void)
411
411
printk("Couldn't find %s to plant kprobe\n", "do_fork");
412
412
return -1;
413
413
}
414
- if ((ret = register_kprobe(&kp) < 0)) {
414
+ ret = register_kprobe(&kp);
415
+ if (ret < 0) {
415
416
printk("register_kprobe failed, returned %d\n", ret);
416
417
return -1;
417
418
}
Original file line number Diff line number Diff line change @@ -1171,7 +1171,8 @@ static int __init vpe_module_init(void)
1171
1171
return - ENODEV ;
1172
1172
}
1173
1173
1174
- if ((major = register_chrdev (0 , module_name , & vpe_fops ) < 0 )) {
1174
+ major = register_chrdev (0 , module_name , & vpe_fops );
1175
+ if (major < 0 ) {
1175
1176
printk ("VPE loader: unable to register character device\n" );
1176
1177
return major ;
1177
1178
}
Original file line number Diff line number Diff line change @@ -501,7 +501,8 @@ static int mt312_set_frontend(struct dvb_frontend* fe,
501
501
case ID_VP310 :
502
502
// For now we will do this only for the VP310.
503
503
// It should be better for the mt312 as well, but tunning will be slower. ACCJr 09/29/03
504
- if ((ret = mt312_readreg (state , CONFIG , & config_val ) < 0 ))
504
+ ret = mt312_readreg (state , CONFIG , & config_val );
505
+ if (ret < 0 )
505
506
return ret ;
506
507
if (p -> u .qpsk .symbol_rate >= 30000000 ) //Note that 30MS/s should use 90MHz
507
508
{
You can’t perform that action at this time.
0 commit comments