Linux内核源代码review Case
来源:互联网 发布:java 获取磁盘io 编辑:程序博客网 时间:2024/05/22 15:29
本文原创为freas_1990,转载请标明出处:http://blog.csdn.net/freas_1990/article/details/18804425
Srikanth Thokala 在2014年1月22日为Xilinx AXI Video Direct Memory Access Engine提交了一个patch,该patch提供了双维度、独立、异步的读写通道,大幅度提升了读写的带宽。
Levente Kurusa 当天为代码做了批注,我们借他的批注来学习一下。
> + if (!err) {> + u32 width = value >> 3; /* Convert bits to bytes */> +> + /* If data width is greater than 8 bytes, DRE is not in hw */> + if (width > 8)> + has_dre = false;> +> + if (!has_dre)> + xdev->common.copy_align = fls(width - 1);> + } else {> + dev_err(xdev->dev, "missing xlnx,datawidth property\n");> + return err;> + }Can you please convert this to:if (err) { dev_err(...); return err;}That way we can avoid the else clause.
0 0
- Linux内核源代码review Case
- Linux内核Code Review 001
- Linux内核Code Review 002
- Code review和Case review
- Linux内核源代码漫游
- Linux 内核源代码漫游
- linux 内核源代码学习
- Linux内核源代码结构
- linux内核源代码下载
- Linux内核源代码目录
- 安装Linux内核源代码
- linux内核源代码目录
- Linux内核源代码
- Linux内核源代码阅读
- Linux内核源代码
- Linux内核源代码结构
- Linux内核源代码目录
- linux内核源代码分析
- 一张图让你了解安卓事件处理流程的走向
- Word Ladder II
- javaday12-Scanner及String
- Linux内核之——C语言“徒手”写内存!
- 进程和线程的差别
- Linux内核源代码review Case
- python实现层次聚类
- python核心编程-传递调用内建函数
- chk启动脚本
- Java的四种代码块
- c++笔记 Thread
- [R语言]R包的安装&帮助获取
- 教你读Git——Linux内核版本管理工具
- Letter Combinations of a Phone Number