The array address is always not null, so no need to check. Remove
useless null checks to fix -Waddress build warnings.
Change-Id: I3bef4644e37d8ed4a2a88fb21408ac1b4ff7a64b
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
DLOG(KERN_DEBUG, "receive queue- not an answer message: %d", msg->req);
return;
}
- if (msg->buf == NULL) {
- DLOG(KERN_ERR, "receive queue- message from host is NULL.");
- return;
- }
DLOG(KERN_DEBUG, "msg buf: %s, req: %d, type: %d", msg->buf, msg->req, msg->type);
DLOG(KERN_DEBUG, "receive queue- not an answer message: %d", msg->req);
return;
}
- if (msg->buf == NULL) {
- DLOG(KERN_ERR, "receive queue- message from host is NULL.");
- return;
- }
DLOG(KERN_DEBUG, "msg buf: %s, req: %d, type: %d", msg->buf, msg->req, msg->type);
return;
}
- if (msg->buf == NULL) {
- ERR("receive queue- message from host is NULL.");
- return;
- }
-
mutex_lock(&vs->lock);
LOG(1, "msg buf: %s, req: %d, type: %d, vs->flags: %d", msg->buf, msg->req, msg->type, vs->flags);