Qinglang Miao wrote:
>
> @@ -584,41 +584,9 @@ static int zip_print_regs(struct seq_file *s, void
> *unused)
>return 0;
> }
>
> -static int zip_stats_open(struct inode *inode, struct file *file)
> -{
> - return single_open(file, zip_show_stats, NULL);
> -}
> -
> -static const struct
From: Liu Shixin
Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code.
Signed-off-by: Liu Shixin
---
drivers/crypto/cavium/zip/zip_main.c | 44
1 file changed, 6 insertions(+), 38 deletions(-)
diff --git a/drivers/crypto/cavium/zip/zip_main.c
b/drivers/crypto/cav
2 matches
Mail list logo