From 0afea875bcb80a4f4362594d685f073e5b3c82e2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 18 Dec 2009 17:16:03 +0000 Subject: [PATCH] Made sure that checkpatch doesn't complain about missing whitespace around the minus character in the following expression: tgt_dev->curr_sn = (typeof(tgt_dev->curr_sn)) -300 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1407 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index de30092a1..3e9527ea7 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -1567,7 +1567,7 @@ static struct scst_tgt_dev *scst_alloc_add_tgt_dev(struct scst_session *sess, spin_lock_init(&tgt_dev->sn_lock); INIT_LIST_HEAD(&tgt_dev->deferred_cmd_list); INIT_LIST_HEAD(&tgt_dev->skipped_sn_list); - tgt_dev->curr_sn = (typeof(tgt_dev->curr_sn)) -300; + tgt_dev->curr_sn = (typeof(tgt_dev->curr_sn))(-300); tgt_dev->expected_sn = tgt_dev->curr_sn + 1; tgt_dev->num_free_sn_slots = ARRAY_SIZE(tgt_dev->sn_slots)-1; tgt_dev->cur_sn_slot = &tgt_dev->sn_slots[0];