mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
Staging: btmtk_usb: Fix line length exceeding 80 characters using min_t macro
This patch fixes the following checkpatch.pl warning in btmtk_usb.c: WARNING: line over 80 characters in the file by using kernel built_in min_t macro. Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Zach Brown <zab@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4ddffcca5e
commit
8365882373
1 changed files with 3 additions and 6 deletions
|
@ -417,8 +417,7 @@ static int btmtk_usb_load_rom_patch(struct btmtk_usb_data *data)
|
|||
/* loading rom patch */
|
||||
while (1) {
|
||||
s32 sent_len_max = UPLOAD_PATCH_UNIT - PATCH_HEADER_SIZE;
|
||||
sent_len = (patch_len - cur_len) >= sent_len_max ?
|
||||
sent_len_max : (patch_len - cur_len);
|
||||
sent_len = min_t(s32, (patch_len - cur_len), sent_len_max);
|
||||
|
||||
BT_DBG("patch_len = %d\n", patch_len);
|
||||
BT_DBG("cur_len = %d\n", cur_len);
|
||||
|
@ -673,8 +672,7 @@ static int btmtk_usb_load_fw(struct btmtk_usb_data *data)
|
|||
|
||||
/* Loading ILM */
|
||||
while (1) {
|
||||
sent_len = (ilm_len - cur_len) >= 14336 ? 14336 :
|
||||
(ilm_len - cur_len);
|
||||
sent_len = min_t(s32, (ilm_len - cur_len), 14336);
|
||||
|
||||
if (sent_len > 0) {
|
||||
packet_header &= ~(0xffffffff);
|
||||
|
@ -732,8 +730,7 @@ static int btmtk_usb_load_fw(struct btmtk_usb_data *data)
|
|||
|
||||
/* Loading DLM */
|
||||
while (1) {
|
||||
sent_len = (dlm_len - cur_len) >= 14336 ? 14336 :
|
||||
(dlm_len - cur_len);
|
||||
sent_len = min_t(s32, (dlm_len - cur_len), 14336);
|
||||
|
||||
if (sent_len <= 0)
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue