.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Function Control Protocol (IEC 61883-1) helper functions |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) Clemens Ladisch <clemens@ladisch.de> |
---|
5 | | - * Licensed under the terms of the GNU General Public License, version 2. |
---|
6 | 6 | */ |
---|
7 | 7 | |
---|
8 | 8 | #include <linux/device.h> |
---|
.. | .. |
---|
240 | 240 | t.response_match_bytes = response_match_bytes; |
---|
241 | 241 | t.state = STATE_PENDING; |
---|
242 | 242 | init_waitqueue_head(&t.wait); |
---|
243 | | - |
---|
244 | | - if (*(const u8 *)command == 0x00 || *(const u8 *)command == 0x03) |
---|
245 | | - t.deferrable = true; |
---|
| 243 | + t.deferrable = (*(const u8 *)command == 0x00 || *(const u8 *)command == 0x03); |
---|
246 | 244 | |
---|
247 | 245 | spin_lock_irq(&transactions_lock); |
---|
248 | 246 | list_add_tail(&t.list, &transactions); |
---|