diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-05-13 14:00:57 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-05-17 18:35:51 +0200 |
commit | b510ab513e19a0ee4371aa23bb1a9f50aa2101e8 (patch) | |
tree | e12df8a820808a6ca2d1e95161935aad93cf7829 /package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c | |
parent | c00b2df6c8e421ea7aa96f53178dc85db99f2305 (diff) | |
download | upstream-b510ab513e19a0ee4371aa23bb1a9f50aa2101e8.tar.gz upstream-b510ab513e19a0ee4371aa23bb1a9f50aa2101e8.tar.bz2 upstream-b510ab513e19a0ee4371aa23bb1a9f50aa2101e8.zip |
kernel: drop outdated kernel version switches for local code
This drops kernel version switches for versions not supported by
OpenWrt master at the moment. This only adjusts local code, but
doesn't touch patches to existing external packages.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c')
-rw-r--r-- | package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c b/package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c index ea94c6460f..1523763ccd 100644 --- a/package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c +++ b/package/kernel/lantiq/ltq-deu/src/ifxmips_async_des.c @@ -117,11 +117,7 @@ struct des_ctx { static int disable_multiblock = 0; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) module_param(disable_multiblock, int, 0); -#else -MODULE_PARM_DESC(disable_multiblock, "Disable encryption of whole multiblock buffers"); -#endif static int disable_deudma = 1; @@ -893,16 +889,6 @@ int __init lqdeu_async_des_init (void) { int i, j, ret = -EINVAL; -#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)) - if (!disable_multiblock) { - ifxdeu_des_alg.cra_u.cipher.cia_max_nbytes = DES_BLOCK_SIZE; //(size_t)-1; - ifxdeu_des_alg.cra_u.cipher.cia_req_align = 16; - ifxdeu_des_alg.cra_u.cipher.cia_ecb = ifx_deu_des_ecb; - ifxdeu_des_alg.cra_u.cipher.cia_cbc = ifx_deu_des_cbc; - ifxdeu_des_alg.cra_u.cipher.cia_cfb = ifx_deu_des_cfb; - ifxdeu_des_alg.cra_u.cipher.cia_ofb = ifx_deu_des_ofb; - } -#endif for (i = 0; i < ARRAY_SIZE(des_drivers_alg); i++) { ret = crypto_register_alg(&des_drivers_alg[i].alg); //printk("driver: %s\n", des_drivers_alg[i].alg.cra_name); |