From 80a0c069de69a45c3b8f1d8c5ffdd2654a159853 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 22 Sep 2011 17:49:04 +0000 Subject: [PATCH] ib_srpt: Clean up two PRINT_ERROR() statements git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3875 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 03b6a6fc6..86fc632cb 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2455,8 +2455,7 @@ static int srpt_cm_req_recv(struct ib_cm_id *cm_id, ch = kzalloc(sizeof *ch, GFP_KERNEL); if (!ch) { rej->reason = cpu_to_be32(SRP_LOGIN_REJ_INSUFFICIENT_RESOURCES); - PRINT_ERROR("%s", - "rejected SRP_LOGIN_REQ because out of memory."); + PRINT_ERROR("rejected SRP_LOGIN_REQ because out of memory."); ret = -ENOMEM; goto reject; } @@ -3847,7 +3846,7 @@ static void srpt_add_one(struct ib_device *device) sizeof(*sdev->ioctx_ring[0]), srp_max_req_size, DMA_FROM_DEVICE); if (!sdev->ioctx_ring) { - PRINT_ERROR("%s", "srpt_alloc_ioctx_ring() failed"); + PRINT_ERROR("srpt_alloc_ioctx_ring() failed"); goto err_event; }