diff options
| author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2025-09-08 04:21:00 +0300 |
|---|---|---|
| committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2025-09-08 04:26:25 +0300 |
| commit | cbb13dceec65b6021a4f403d4fa7b237569a1007 (patch) | |
| tree | 0ec32ce0f624b6b6d14caf8c4b9c503c31aea72a /drivers/firewire | |
| parent | c908e072b6932e2d40645f6916c9b4bfe8f3f12f (diff) | |
| download | linux-cbb13dceec65b6021a4f403d4fa7b237569a1007.tar.xz | |
firewire: ohci: use return value from fw_node_get()
The programming pattern, referring after increasing reference count, is
supported by fw_node_get().
This commit simplify the programming pattern.
Link: https://lore.kernel.org/r/20250908012108.514698-4-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'drivers/firewire')
| -rw-r--r-- | drivers/firewire/core-card.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/firewire/core-card.c b/drivers/firewire/core-card.c index d128c7a8bf5f..41902dcc10a0 100644 --- a/drivers/firewire/core-card.c +++ b/drivers/firewire/core-card.c @@ -306,8 +306,7 @@ static void bm_work(struct work_struct *work) generation = card->generation; - root_node = card->root_node; - fw_node_get(root_node); + root_node = fw_node_get(card->root_node); root_device = root_node->data; root_device_is_running = root_device && atomic_read(&root_device->state) == FW_DEVICE_RUNNING; |
