Made sure that checkpatch doesn't complain about missing whitespace around
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 18 Dec 2009 17:16:03 +0000 (17:16 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 18 Dec 2009 17:16:03 +0000 (17:16 +0000)
the minus character in the following expression:
    tgt_dev->curr_sn = (typeof(tgt_dev->curr_sn)) -300

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1407 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/scst_lib.c

index de30092..3e9527e 100644 (file)
@@ -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];