Message ID | 10e92128-444a-bec3-e021-61379c21bf4d@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/tuners/tuner-xc2028.c b/drivers/media/tuners/tuner-xc2028.c index 7353f25f9e7d..90efe11aa0a8 100644 --- a/drivers/media/tuners/tuner-xc2028.c +++ b/drivers/media/tuners/tuner-xc2028.c @@ -335,5 +335,5 @@ static int load_all_firmwares(struct dvb_frontend *fe, priv->firm_version >> 8, priv->firm_version & 0xff); priv->firm = kcalloc(n_array, sizeof(*priv->firm), GFP_KERNEL); - if (priv->firm == NULL) { + if (!priv->firm) { rc = -ENOMEM; @@ -384,5 +384,5 @@ static int load_all_firmwares(struct dvb_frontend *fe, } priv->firm[n].ptr = kzalloc(size, GFP_KERNEL); - if (priv->firm[n].ptr == NULL) { + if (!priv->firm[n].ptr) { rc = -ENOMEM;