Commit 2451a28
fbdev: omapfb: Use sysfs_emit_at() to simplify code
This file already uses sysfs_emit(). So be consistent and also use
sysfs_emit_at().
Moreover, size is always < PAGE_SIZE because scnprintf() (and now
sysfs_emit_at()) returns the number of characters written not including the
trailing '\0'. So some tests can be removed.
This slightly simplifies the code and makes it more readable.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Helge Deller <deller@gmx.de>1 parent 33ae421 commit 2451a28
1 file changed
Lines changed: 14 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1241 | 1241 | | |
1242 | 1242 | | |
1243 | 1243 | | |
1244 | | - | |
| 1244 | + | |
1245 | 1245 | | |
1246 | 1246 | | |
1247 | 1247 | | |
1248 | | - | |
1249 | | - | |
| 1248 | + | |
1250 | 1249 | | |
1251 | | - | |
| 1250 | + | |
1252 | 1251 | | |
1253 | 1252 | | |
1254 | 1253 | | |
| |||
1263 | 1262 | | |
1264 | 1263 | | |
1265 | 1264 | | |
1266 | | - | |
| 1265 | + | |
1267 | 1266 | | |
1268 | 1267 | | |
1269 | | - | |
1270 | | - | |
| 1268 | + | |
1271 | 1269 | | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
| 1270 | + | |
| 1271 | + | |
1276 | 1272 | | |
1277 | | - | |
| 1273 | + | |
1278 | 1274 | | |
1279 | 1275 | | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
| 1276 | + | |
| 1277 | + | |
1284 | 1278 | | |
1285 | | - | |
| 1279 | + | |
1286 | 1280 | | |
1287 | 1281 | | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
1291 | | - | |
| 1282 | + | |
| 1283 | + | |
1292 | 1284 | | |
1293 | | - | |
| 1285 | + | |
1294 | 1286 | | |
1295 | 1287 | | |
1296 | 1288 | | |
| |||
0 commit comments