/* read from attribute memory in reset/ready state to know when the CAM is ready */
        if (budget_av->slot_status == SLOTSTATUS_RESET) {
                result = ciintf_read_attribute_mem(ca, slot, 0);
-               if (result == 0x1d) {
+               if (result == 0x1d)
                        budget_av->slot_status = SLOTSTATUS_READY;
-               }
        }
 
        /* work out correct return code */
        if (budget_av->slot_status != SLOTSTATUS_NONE) {
-               if (budget_av->slot_status & SLOTSTATUS_READY) {
+               if (budget_av->slot_status & SLOTSTATUS_READY)
                        return DVB_CA_EN50221_POLL_CAM_PRESENT | DVB_CA_EN50221_POLL_CAM_READY;
-               }
                return DVB_CA_EN50221_POLL_CAM_PRESENT;
        }
        return 0;
        } else if (input == 0) {
                i2c_writereg(&budget->i2c_adap, 0x4a, 0x02, 0xc0);
                i2c_writereg(&budget->i2c_adap, 0x4a, 0x09, 0x00);
-       } else
+       } else {
                return -EINVAL;
+       }
 
        budget_av->cur_input = input;
        return 0;
                if (saa->pci->subsystem_vendor == 0x1894) {
                        fe = dvb_attach(stv0299_attach, &cinergy_1200s_1894_0010_config,
                                             &budget_av->budget.i2c_adap);
-                       if (fe) {
+                       if (fe)
                                dvb_attach(tua6100_attach, fe, 0x60, &budget_av->budget.i2c_adap);
-                       }
                } else {
                        fe = dvb_attach(stv0299_attach, &typhoon_config,
                                             &budget_av->budget.i2c_adap);
-                       if (fe) {
+                       if (fe)
                                fe->ops.tuner_ops.set_params = philips_su1278_ty_ci_tuner_set_params;
-                       }
                }
                break;
 
        case SUBID_DVBS_EASYWATCH_2:
                fe = dvb_attach(stv0299_attach, &philips_sd1878_config,
                                &budget_av->budget.i2c_adap);
-               if (fe) {
+               if (fe)
                        dvb_attach(dvb_pll_attach, fe, 0x60,
                                   &budget_av->budget.i2c_adap,
                                   DVB_PLL_PHILIPS_SD1878_TDA8261);
-               }
                break;
 
        case SUBID_DVBS_TYPHOON:
                fe = dvb_attach(stv0299_attach, &typhoon_config,
                                    &budget_av->budget.i2c_adap);
-               if (fe) {
+               if (fe)
                        fe->ops.tuner_ops.set_params = philips_su1278_ty_ci_tuner_set_params;
-               }
                break;
        case SUBID_DVBS2_KNC1:
        case SUBID_DVBS2_KNC1_OEM:
        case SUBID_DVBS_CINERGY1200:
                fe = dvb_attach(stv0299_attach, &cinergy_1200s_config,
                                    &budget_av->budget.i2c_adap);
-               if (fe) {
+               if (fe)
                        fe->ops.tuner_ops.set_params = philips_su1278_ty_ci_tuner_set_params;
-               }
                break;
 
        case SUBID_DVBC_KNC1:
                        fe = dvb_attach(tda10021_attach, &philips_cu1216_config_altaddress,
                                             &budget_av->budget.i2c_adap,
                                             read_pwm(budget_av));
-               if (fe) {
+               if (fe)
                        fe->ops.tuner_ops.set_params = philips_cu1216_tuner_set_params;
-               }
                break;
 
        case SUBID_DVBC_EASYWATCH_MK3:
                        &philips_cu1216_tda10023_config,
                        &budget_av->budget.i2c_adap,
                        read_pwm(budget_av));
-               if (fe) {
+               if (fe)
                        fe->ops.tuner_ops.set_params = philips_cu1216_tuner_set_params;
-               }
                break;
 
        case SUBID_DVBT_EASYWATCH:
 
        flags = ttpci_budget_debiread(&budget_ci->budget, DEBICICTL, DEBIADDR_CICONTROL, 1, 1, 0);
        if (flags & CICONTROL_CAMDETECT) {
                // mark it as present if it wasn't before
-               if (budget_ci->slot_status & SLOTSTATUS_NONE) {
+               if (budget_ci->slot_status & SLOTSTATUS_NONE)
                        budget_ci->slot_status = SLOTSTATUS_PRESENT;
-               }
 
                // during a RESET, we check if we can read from IO memory to see when CAM is ready
                if (budget_ci->slot_status & SLOTSTATUS_RESET) {
-                       if (ciintf_read_attribute_mem(ca, slot, 0) == 0x1d) {
+                       if (ciintf_read_attribute_mem(ca, slot, 0) == 0x1d)
                                budget_ci->slot_status = SLOTSTATUS_READY;
-                       }
                }
        } else {
                budget_ci->slot_status = SLOTSTATUS_NONE;
        }
 
        if (budget_ci->slot_status != SLOTSTATUS_NONE) {
-               if (budget_ci->slot_status & SLOTSTATUS_READY) {
+               if (budget_ci->slot_status & SLOTSTATUS_READY)
                        return DVB_CA_EN50221_POLL_CAM_PRESENT | DVB_CA_EN50221_POLL_CAM_READY;
-               }
                return DVB_CA_EN50221_POLL_CAM_PRESENT;
        }
 
        // Setup CI slot IRQ
        if (budget_ci->ci_irq) {
                tasklet_setup(&budget_ci->ciintf_irq_tasklet, ciintf_interrupt);
-               if (budget_ci->slot_status != SLOTSTATUS_NONE) {
+               if (budget_ci->slot_status != SLOTSTATUS_NONE)
                        saa7146_setgpio(saa, 0, SAA7146_GPIO_IRQLO);
-               } else {
+               else
                        saa7146_setgpio(saa, 0, SAA7146_GPIO_IRQHI);
-               }
                SAA7146_IER_ENABLE(saa, MASK_03);
        }
 
 
        // determine charge pump
        tuner_frequency = p->frequency + 36125000;
-       if (tuner_frequency < 87000000)
+       if (tuner_frequency < 87000000) {
                return -EINVAL;
-       else if (tuner_frequency < 130000000) {
+       } else if (tuner_frequency < 130000000) {
                cp = 3;
                band = 1;
        } else if (tuner_frequency < 160000000) {
        } else if (tuner_frequency < 895000000) {
                cp = 7;
                band = 4;
-       } else
+       } else {
                return -EINVAL;
+       }
 
        // assume PLL filter should always be 8MHz for the moment.
        filter = 1;
 
        mdelay(16);
 
        if (burst != -1) {
-               if (burst)
+               if (burst) {
                        DiseqcSendByte(budget, 0xff);
-               else {
+               } else {
                        saa7146_setgpio(dev, 3, SAA7146_GPIO_OUTHI);
                        mdelay(12);
                        udelay(500);
        return 0;
 }
 
-static struct ves1x93_config alps_bsrv2_config =
-{
+static struct ves1x93_config alps_bsrv2_config = {
        .demod_address = 0x08,
        .xin = 90100000UL,
        .invert_pwm = 0,
        int err;
 
        budget = kmalloc(sizeof(struct budget), GFP_KERNEL);
-       if (NULL == budget) {
+       if (NULL == budget)
                return -ENOMEM;
-       }
 
        dprintk(2, "dev:%p, info:%p, budget:%p\n", dev, info, budget);