File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -511,13 +511,9 @@ EXPORT_SYMBOL(kmem_cache_destroy);
511
511
*/
512
512
int kmem_cache_shrink (struct kmem_cache * cachep )
513
513
{
514
- int ret ;
515
-
516
-
517
514
kasan_cache_shrink (cachep );
518
- ret = __kmem_cache_shrink (cachep );
519
515
520
- return ret ;
516
+ return __kmem_cache_shrink ( cachep ) ;
521
517
}
522
518
EXPORT_SYMBOL (kmem_cache_shrink );
523
519
Original file line number Diff line number Diff line change @@ -5837,17 +5837,14 @@ static ssize_t slab_attr_show(struct kobject *kobj,
5837
5837
{
5838
5838
struct slab_attribute * attribute ;
5839
5839
struct kmem_cache * s ;
5840
- int err ;
5841
5840
5842
5841
attribute = to_slab_attr (attr );
5843
5842
s = to_slab (kobj );
5844
5843
5845
5844
if (!attribute -> show )
5846
5845
return - EIO ;
5847
5846
5848
- err = attribute -> show (s , buf );
5849
-
5850
- return err ;
5847
+ return attribute -> show (s , buf );
5851
5848
}
5852
5849
5853
5850
static ssize_t slab_attr_store (struct kobject * kobj ,
@@ -5856,16 +5853,14 @@ static ssize_t slab_attr_store(struct kobject *kobj,
5856
5853
{
5857
5854
struct slab_attribute * attribute ;
5858
5855
struct kmem_cache * s ;
5859
- int err ;
5860
5856
5861
5857
attribute = to_slab_attr (attr );
5862
5858
s = to_slab (kobj );
5863
5859
5864
5860
if (!attribute -> store )
5865
5861
return - EIO ;
5866
5862
5867
- err = attribute -> store (s , buf , len );
5868
- return err ;
5863
+ return attribute -> store (s , buf , len );
5869
5864
}
5870
5865
5871
5866
static void kmem_cache_release (struct kobject * k )
You can’t perform that action at this time.
0 commit comments