Re: [PATCH -next] crypto: zip: Convert to DEFINE_SHOW_ATTRIBUTE

2020-07-23 Thread Herbert Xu
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

[PATCH -next] crypto: zip: Convert to DEFINE_SHOW_ATTRIBUTE

2020-07-16 Thread Qinglang Miao
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