aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2022-02-23 16:52:56 -0600
committerGreg Kroah-Hartman <[email protected]>2022-03-18 14:27:26 +0100
commit9ad307213fa4081f4bc2f2daa31d4f2d35d7a213 (patch)
treecb9a8558871923771c992692a1f06bc03c44d713 /net/lapb/lapb_in.c
parent5bff9632b538d63f61f1c4bba891a8f09f254369 (diff)
driver core: Refactor multiple copies of device cleanup
There are 3 copies of the same device cleanup code used for probe failure, testing re-probing, and device unbinding. Changes to this code often miss at least one of the copies of the code. See commits d0243bbd5dd3 ("drivers core: Free dma_range_map when driver probe failed") and d8f7a5484f21 ("driver core: Free DMA range map when device is released") for example. Let's refactor the code to its own function. Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions