s390/zcrypt: fix memory leak with ap configuration data
[deliverable/linux.git] / drivers / s390 / crypto / ap_bus.h
index 2e0a21f84f3d3b72d26cd0d3dddd49ecfbf773e1..83cc9e404a77d15f7ae74eacd6870b81413b07b7 100644 (file)
@@ -76,11 +76,8 @@ struct ap_queue_status {
 } __packed;
 
 
-#define AP_MAX_BITS 31
 static inline int ap_test_bit(unsigned int *ptr, unsigned int nr)
 {
-       if (nr > AP_MAX_BITS)
-               return 0;
        return (*ptr & (0x80000000u >> nr)) != 0;
 }
 
This page took 0.037614 seconds and 5 git commands to generate.