[PATCH 06/12] [S390] dasd: drop unneeded newline

From: Julia Lawall
Date: Wed Dec 27 2017 - 10:21:48 EST


DBF_DEV_EVENT prints a newline at the end of the message string,
so the message string does not need to include a newline explicitly.
Done using Coccinelle.

The two strings are also concatenated into one for easier grepping.

Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxx>

---
drivers/s390/block/dasd_diag.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/s390/block/dasd_diag.c b/drivers/s390/block/dasd_diag.c
index f035c2f..96c507a 100644
--- a/drivers/s390/block/dasd_diag.c
+++ b/drivers/s390/block/dasd_diag.c
@@ -329,8 +329,7 @@ static void dasd_ext_handler(struct ext_code ext_code,
private = kzalloc(sizeof(*private), GFP_KERNEL);
if (private == NULL) {
DBF_DEV_EVENT(DBF_WARNING, device, "%s",
- "Allocating memory for private DASD data "
- "failed\n");
+ "Allocating memory for private DASD data failed");
return -ENOMEM;
}
ccw_device_get_id(device->cdev, &private->dev_id);