diff options
author | Thomas Langer <thomas.langer@lantiq.com> | 2008-12-16 19:39:34 +0000 |
---|---|---|
committer | Thomas Langer <thomas.langer@lantiq.com> | 2008-12-16 19:39:34 +0000 |
commit | a38b23a89487105dce90bd97ba6fd0e96760875a (patch) | |
tree | ccecb931a7e7d508d4422d31ddf84aac414a305c /target/linux/ifxmips/files/drivers/char/ifxmips_ssc.c | |
parent | cb87dfde7be9c2b86d54e39666261306ef33edea (diff) | |
download | mtk-20170518-a38b23a89487105dce90bd97ba6fd0e96760875a.zip mtk-20170518-a38b23a89487105dce90bd97ba6fd0e96760875a.tar.gz mtk-20170518-a38b23a89487105dce90bd97ba6fd0e96760875a.tar.bz2 |
many more code cleanups for checkpatch.pl, most flagged as errors
SVN-Revision: 13665
Diffstat (limited to 'target/linux/ifxmips/files/drivers/char/ifxmips_ssc.c')
-rw-r--r-- | target/linux/ifxmips/files/drivers/char/ifxmips_ssc.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/target/linux/ifxmips/files/drivers/char/ifxmips_ssc.c b/target/linux/ifxmips/files/drivers/char/ifxmips_ssc.c index 5d61356..f8c5f30 100644 --- a/target/linux/ifxmips/files/drivers/char/ifxmips_ssc.c +++ b/target/linux/ifxmips/files/drivers/char/ifxmips_ssc.c @@ -1251,24 +1251,13 @@ static int ssc_session(char *tx_buf, u32 tx_len, char *rx_buf, u32 rx_len) else eff_size = tx_len; - //4 bytes alignment, required by driver - /* change by TaiCheng */ - //if (in_irq()){ - if (1) { - ssc_tx_buf = kmalloc(sizeof(char) * - ((eff_size + 3) & (~3)), - GFP_ATOMIC); - ssc_rx_buf = kmalloc(sizeof(char) * - ((eff_size + 3) & (~3)), - GFP_ATOMIC); - } else { - ssc_tx_buf = kmalloc(sizeof(char) * - ((eff_size + 3) & (~3)), - GFP_KERNEL); - ssc_rx_buf = kmalloc(sizeof(char) * - ((eff_size + 3) & (~3)), - GFP_KERNEL); - } + /* 4 bytes alignment, required by driver */ + ssc_tx_buf = kmalloc(sizeof(char) * + ((eff_size + 3) & (~3)), + GFP_ATOMIC); + ssc_rx_buf = kmalloc(sizeof(char) * + ((eff_size + 3) & (~3)), + GFP_ATOMIC); if (ssc_tx_buf == NULL || ssc_rx_buf == NULL) { printk("no memory for size of %d\n", eff_size); ret = -ENOMEM; |