Tag: 4d042654afb342386cb5c33e29843b76d598ab61

Bluetooth: cmtp: Remove unnecessary null test

Author: Himangi Saraogi <himangi774@gmail.com> This patch removes the null test on ctrl. ctrl is initialized at the beginning of the function to &session->ctrl. Since session is dereferenced prior to the null test, session must be a valid pointer, and &session->ctrl cannot be null. The following Coccinelle script is used for detecting the change: @r@ expression …

Continue reading