Merge remote-tracking branch 'usb/usb-next'
[deliverable/linux.git] / drivers / usb / wusbcore / crypto.c
index 33acd1599e99e92cc819d6332bd61ff7ee69665b..79b2b628066d81c5e5c6ceda10f707587c55b1c8 100644 (file)
@@ -229,10 +229,8 @@ static int wusb_ccm_mac(struct crypto_skcipher *tfm_cbc,
                zero_padding = sizeof(struct aes_ccm_block) - zero_padding;
        dst_size = blen + sizeof(b0) + sizeof(b1) + zero_padding;
        dst_buf = kzalloc(dst_size, GFP_KERNEL);
-       if (dst_buf == NULL) {
-               printk(KERN_ERR "E: can't alloc destination buffer\n");
+       if (!dst_buf)
                goto error_dst_buf;
-       }
 
        memset(iv, 0, sizeof(iv));
 
This page took 0.046123 seconds and 5 git commands to generate.